Skip to content

Commit

Permalink
Add some json-specific aus.
Browse files Browse the repository at this point in the history
  • Loading branch information
adimit committed Apr 16, 2012
1 parent cae6017 commit e888f96
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vimrc
Expand Up @@ -242,6 +242,19 @@ let g:tagbar_compact=1
""" Vim Help Files: make [Return] follow a link
autocmd FileType help nmap <buffer> <Return> <C-]>
""" JSON

au! BufRead,BufNewFile *.json set filetype=json
augroup json_autocmd
autocmd!
autocmd FileType json set autoindent
autocmd FileType json set formatoptions=tcq2l
autocmd FileType json set textwidth=78 shiftwidth=2
autocmd FileType json set softtabstop=2 tabstop=8
autocmd FileType json set expandtab
autocmd FileType json set foldmethod=syntax
augroup END

""" Java
""autocmd filetype java nmap <F9> :Ant<cr>
let java_highlight_all = 1
Expand Down

0 comments on commit e888f96

Please sign in to comment.