diff options
author | Teddy Wing | 2014-05-17 03:15:14 -0400 |
---|---|---|
committer | Teddy Wing | 2014-05-17 03:19:53 -0400 |
commit | 46ee5b036077dbe33b495efd8fb5a32959f650fa (patch) | |
tree | 550f0a24df9f778843141e1f071ef9bf172cda28 | |
parent | 88b7702816c1e5ffc09a333d0ee63378979fb9a8 (diff) | |
download | dotvim-46ee5b036077dbe33b495efd8fb5a32959f650fa.tar.bz2 |
Move JSON filetype detection to ftdetect directory
To keep things organised, use the .vim/ftdetect directory instead of my
vimrc to set the JSON filetype.
-rw-r--r-- | ftdetect/json.vim | 1 | ||||
-rw-r--r-- | vimrc | 13 |
2 files changed, 6 insertions, 8 deletions
diff --git a/ftdetect/json.vim b/ftdetect/json.vim new file mode 100644 index 0000000..4db08ed --- /dev/null +++ b/ftdetect/json.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.json set filetype=json syntax=javascript @@ -133,6 +133,11 @@ " * Add a filetype plugin file for python, specifying PEP8 indentation " and ensuring indentation is not preserved on blank lines. " +" 2014.05.17: +" * Move JSON filetype detection from vimrc to ftdetect/json.vim. Now +" that I know that such things exist, it's nice to keep things +" organised. +" " Pathogen @@ -463,14 +468,6 @@ command! CopyModeToggle call CopyModeToggle() " autocmd bufwritepost .vimrc source $MYVIMRC " endif -" Filetype syntax highlighting -augroup filetype_syntax_highlighting - autocmd! - - " Set JSON files to JavaScript syntax - autocmd BufRead,BufNewFile *.json set filetype=json syntax=javascript -augroup END - " Indentation rules by file type augroup filetype_indentation |