Skip to content

Instantly share code, notes, and snippets.

@Ram-Z
Created August 10, 2019 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ram-Z/23d8f586f4ffefd338ed0b7b20616da8 to your computer and use it in GitHub Desktop.
Save Ram-Z/23d8f586f4ffefd338ed0b7b20616da8 to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment