diff --git a/src/.config/nvim/init.vim b/src/.config/nvim/init.vim index 5027d8c..287bcd0 100755 --- a/src/.config/nvim/init.vim +++ b/src/.config/nvim/init.vim @@ -9,8 +9,12 @@ autocmd InsertLeave * hi StatusLine cterm=italic highlight LineNr ctermfg=grey highlight EndOfBuffer ctermfg=black ctermbg=black +" Disable highlighting when searching nnoremap :noh + +" NetRW + set splitbelow splitright let g:netrw_banner = 0 @@ -21,20 +25,39 @@ let g:netrw_winsize = 20 function! OpenNetRW() Vexplore - wincmd l endfunction -aug ProjectDrawer - au! - au VimEnter * :call OpenNetRW() -aug END - aug netrw_close au! au WinEnter * if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&filetype") == "netrw"|q|endif aug END nnoremap :wincmd w -inoremap :wincmd w nnoremap :wincmd W inoremap :wincmd W + +nnoremap - :call OpenNetRW() + + +" gdb integration + +let g:termdebug_popup = 0 +let g:termdebug_wide = 100 + +tnoremap :wincmd w +tnoremap :wincmd W +tnoremap + +au BufEnter term://* startinsert +au BufEnter *.c,*.cpp,*.h,*.hpp packadd termdebug + +nnoremap :Termdebug a.out +nnoremap :!g++ -g %:p +nnoremap :Run +nnoremap :Stop +nnoremap :Break +nnoremap :Clear +nnoremap :Continue +nnoremap :Over +nnoremap :Step +nnoremap :Finish