From: Samir Benmendil Date: Fri, 11 Mar 2022 08:56:51 +0000 (+0000) Subject: vim/cpp: add mappings for Termdebug X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/ae723b37b2a50dc76c9336fba39b1f3826a754dc?ds=sidebyside vim/cpp: add mappings for Termdebug --- 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