X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;fp=init.vim;h=51804e5c15cda8ce1bea45cad6ff34c711ab7000;hp=414b3ffcfbc5eed4e64de1c329463b86434696c2;hb=298897dcd183ef0b05ff4be7ac221bd219f36291;hpb=f1c211d10365e5f9f6cd335617484f52abf860c9 diff --git a/init.vim b/init.vim index 414b3ff..51804e5 100644 --- a/init.vim +++ b/init.vim @@ -73,16 +73,6 @@ au Filetype mail syn match Statement /^\s*-*\s*8<\s*-*\s*$/ " Line wrap crippled with numbers shown au Filetype man setlocal nonumber -" Minimum indenting for source code -au FileType java,cpp,c,cs let g:detectindent_min_indent = 4 -" Consider using localvimrc config file or editorconfig instead -"au BufReadPost *.java :DetectIndent - -au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.' -au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.' - -au BufEnter *.cpp,*.cc,*.cxx let b:fswitchdst='h,hxx,hpp,hh' -au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp' au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards() au FileType cpp,c packadd termdebug