X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=init.vim;h=c1f78720142bbe2f3881c099039fa0db0595c10f;hb=f99a410c53f7970ef3d850ec3b7408e46166d1ca;hp=80b80ee612d7c43541ade42879e4ce35f7e35cef;hpb=af9e63ed9f1c7ebc2d5d334a4413a8d7624a270e;p=vimconf.git diff --git a/init.vim b/init.vim index 80b80ee..c1f7872 100644 --- a/init.vim +++ b/init.vim @@ -177,6 +177,8 @@ 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 + augroup autofoldcolumn au! au CursorHold,BufWinEnter * AutoOrigamiFoldColumn @@ -306,6 +308,28 @@ let s:normal_mode_mappings = [ let g:termdebug_wide = 1 let termdebugger = $HOME . '/.vim/gdb.sh' +if has('nvim-0.5') && $USER != "root" +lua <