MartinDelille / dotfiles

My custom dotfiles
MIT License
1 stars 1 forks source link

Develop and debug within vim #11

Open MartinDelille opened 1 year ago

MartinDelille commented 1 year ago
" C/C++ Settings
au BufNewFile,BufRead *.c,*.h,*.cpp,*.hpp,*.cxx,*.hxx set tabstop=4 | set softtabstop=4 | set shiftwidth=4 | set expandtab | set autoindent | set smartindent | set fileformat=unix
autocmd FileType cpp nnoremap <leader>i :ClangFormat<cr>z.
au FileType cpp,c packadd termdebug

" Debugger settings
" Termdebug
let g:termdebug_popup = 0
let g:termdebug_wide = 163
autocmd FileType cpp nnoremap <leader>td :Termdebug<cr><c-w>10+
MartinDelille commented 1 year ago

https://www.kdab.com/debug-qt-in-vs-and-vsc/