X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/5241d5e70cfb32049a65c30dbdcdf49a130459d7..18311c485f1824c7d88650b1516dd15570892bc5:/vim/ftplugin/cpp.vim?ds=sidebyside diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index 16ffc97..a12e2d4 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -1 +1,22 @@ setlocal foldmethod=syntax + +setlocal textwidth=100 + +" indent 4 spaces +setlocal shiftwidth=4 +setlocal tabstop=4 +setlocal softtabstop=4 +setlocal expandtab + +setlocal nosmartindent +setlocal autoindent +setlocal cinkeys-=0# " don't reindent PP directives +setlocal cinoptions+=:0 " don't indent case labels + +" Load the doxygen syntax +let b:load_doxygen_syntax = 1 + +augroup fswitch + au BufEnter *.h let b:fswitchdst = 'cpp,c' + au BufEnter *.h let b:fswitchlocs = 'reg:/include/source/' +augroup END