Skip to content

Instantly share code, notes, and snippets.

@LanternD
Last active November 28, 2018 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LanternD/a7d461f9419b0ed56c52bd2bd23e2715 to your computer and use it in GitHub Desktop.
Save LanternD/a7d461f9419b0ed56c52bd2bd23e2715 to your computer and use it in GitHub Desktop.
Some Vim commands that I need every now and then. Keep updating.
" I put these commands in a '.vimrc' file, but this is not my actually '.vimrc'.
" change the syntax highlight of the current buffer
:set syntax=c
" no syntax highlight
:set syntax=off
" .vimrc. Bind the syntax option to a specific file extension
autocmd BufNewFile,BufRead *.your_ext set syntax=json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment