Skip to content

Instantly share code, notes, and snippets.

packadd termdebug
let g:termdebug_wide = 1
function! s:Debug(...)
tabedit %
let t:debug_tab=1
au BufDelete !gdb ++once if exists('t:debug_tab') | tabclose | endif
endfunction
command! -nargs=* -bang -complete=file Debug call <SID>Debug() | Termdebug<bang> <args>