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 %
endfunction
command! -nargs=* -complete=file -bang Debug call <SID>Debug() | Termdebug<bang> <args>
command! -nargs=+ -complete=file -bang DebugCommand call <SID>Debug() | TermdebugCommand<bang> <args>
-
-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()