neovim/contrib/vim-addon-local-vimrc/vimrc
2014-03-14 20:37:03 -03:00

12 lines
326 B
VimL

set modelines=0
augroup LOCAL_SETUP
autocmd!
autocmd BufRead,BufNewFile *.h set filetype=c
autocmd FileType c setlocal expandtab
autocmd FileType c setlocal shiftwidth=2
autocmd FileType c setlocal softtabstop=2
autocmd FileType c setlocal textwidth=80
autocmd FileType c setlocal comments=:///,://
augroup end