X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ec103556f2e0a25af006b0e3096cf00f10d24793..8989ff1e17ac528e13a64614b669be3fb03b2435:/vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index ea6837f..a039bac 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -60,7 +60,7 @@ setlocal errorformat+=%X%*\\a:\ Leaving\ directory\ [`']%f' setlocal errorformat+=%*[^[]\[%tRROR\]%m\ \[%f:%l\] setlocal errorformat+=%*[^[]\[%tARNING\]%m\ \[%f:%l\] -packadd termdebug +packadd! termdebug let g:termdebug_wide = 1 function! s:Debug(...) tabedit % @@ -76,15 +76,3 @@ function! s:Debug(...) endfunction command! -nargs=* -complete=file -bang Debug call Debug() | Termdebug command! -nargs=+ -complete=file -bang DebugCommand call Debug() | TermdebugCommand - -setlocal foldmethod=syntax -" set foldlevel according to number of matches of 'namespace' and 'class' not -" containing ';' -function! InitialFoldLevel() - let v:errmsg = "" - keepjumps keeppatterns silent! 1,/}/s/^\(namespace\|class\) \+[^;]*$//n - if v:errmsg == "" - let &l:foldlevel=str2nr(split(v:statusmsg)[0]) - endif -endf -call InitialFoldLevel()