diff --git a/.vimrc b/.vimrc index ea994e9..9857cab 100644 --- a/.vimrc +++ b/.vimrc @@ -66,6 +66,8 @@ function! s:C() """""""""""""""""""""""""""""" " md as markdown, instead of modula2 autocmd BufNewFile,BufRead *.{md,mdwn,mkd,mkdn,mark*} set filetype=markdown +" json as javascript +autocmd BufNewFile,BufRead *.{json} set filetype=javascript """""""""""""""""""""""""""""" " http://inari.hatenablog.com/entry/2014/05/05/231307