From 46ee5b036077dbe33b495efd8fb5a32959f650fa Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 17 May 2014 03:15:14 -0400 Subject: 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. --- vimrc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 3fd3274..6b69099 100644 --- a/vimrc +++ b/vimrc @@ -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 -- cgit v1.2.3