augroup fswitch_cpp
au!
- au BufEnter *.h let b:fswitchdst = 'c,cpp,cc'
+ au BufEnter *.h let b:fswitchdst = 'cpp,cc,c'
au BufEnter *.h let b:fswitchlocs = '.,reg:|include.*|src|'
au BufEnter *.hpp let b:fswitchdst = 'cpp,c'
au BufEnter *.hpp let b:fswitchlocs = '.,reg:|include.*|src|'
nnoremap <buffer> <C-S> :Step<CR>
nnoremap <buffer> <C-N> :Over<CR>
nnoremap <buffer> <C-F> :Finish<CR>
+ nnoremap <buffer> <C-T> :call TermDebugSendCommand('advance -source '.expand('%').' -line '.line("."))<CR>
+ nnoremap <buffer> <C-S> :Step<CR>
+ nnoremap <buffer> <C-N> :Over<CR>
+ nnoremap <buffer> <C-F> :Finish<CR>
endfunction
command! -nargs=* -complete=file -bang Debug call <SID>Debug() | Termdebug<bang> <args>
command! -nargs=+ -complete=file -bang DebugCommand call <SID>Debug() | TermdebugCommand<bang> <args>