X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/bfa7a2383b6e7742a6659578f4cc1f0ccee5a184..272f8887efd100c9ef4d0688664e6fe00573bf4d:/vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim index fcd8066..ec68cf2 100644 --- a/vim/ftplugin/cpp.vim +++ b/vim/ftplugin/cpp.vim @@ -91,6 +91,10 @@ function! s:Debug(...) nnoremap :Step nnoremap :Over nnoremap :Finish + nnoremap :call TermDebugSendCommand('advance -source '.expand('%').' -line '.line(".")) + nnoremap :Step + nnoremap :Over + nnoremap :Finish endfunction command! -nargs=* -complete=file -bang Debug call Debug() | Termdebug command! -nargs=+ -complete=file -bang DebugCommand call Debug() | TermdebugCommand