X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=init.vim;h=1ad51f0919f22a0ae6a895a8e38fe8dbb8a3cba6;hb=7b6db222395eeac91fae9e07ba9327dd0cc45020;hp=414b3ffcfbc5eed4e64de1c329463b86434696c2;hpb=16bc2290e1fad3db8a4116f5c61df91d9fd02b12;p=vimconf.git diff --git a/init.vim b/init.vim index 414b3ff..1ad51f0 100644 --- a/init.vim +++ b/init.vim @@ -36,6 +36,7 @@ set colorcolumn=+1 set mouse=a set wildmenu set wildmode=longest,list:full +set showcmd set tabpagemax=100 @@ -73,16 +74,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