From ae723b37b2a50dc76c9336fba39b1f3826a754dc Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Fri, 11 Mar 2022 08:56:51 +0000 Subject: [PATCH] vim/cpp: add mappings for Termdebug --- vim/ftplugin/cpp.vim | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.48.1