2022-07-04 21:39:27 -04:00
|
|
|
set tabstop=4 shiftwidth=4 noexpandtab relativenumber ai nu rnu nosmd ignorecase smartcase
|
|
|
|
set lazyredraw nocursorline ttyfast
|
2021-06-19 15:50:50 -04:00
|
|
|
|
2021-07-26 09:32:48 -04:00
|
|
|
hi Search cterm=NONE ctermfg=white ctermbg=blue
|
2021-08-24 21:36:54 -04:00
|
|
|
hi StatusLine ctermbg=NONE cterm=italic
|
|
|
|
|
|
|
|
autocmd InsertEnter * hi StatusLine cterm=bold
|
|
|
|
autocmd InsertLeave * hi StatusLine cterm=italic
|
2021-07-26 09:32:48 -04:00
|
|
|
|
2021-06-19 15:50:50 -04:00
|
|
|
highlight LineNr ctermfg=grey
|
|
|
|
highlight EndOfBuffer ctermfg=black ctermbg=black
|
2022-06-01 20:02:57 -04:00
|
|
|
|
2022-07-01 18:18:55 -04:00
|
|
|
" Disable highlighting when searching
|
2022-07-05 17:28:32 -04:00
|
|
|
nnoremap <silent> <esc> :noh<return><esc>
|
2022-06-28 21:14:41 -04:00
|
|
|
|
2022-07-01 18:18:55 -04:00
|
|
|
|
|
|
|
" NetRW
|
|
|
|
|
2022-06-28 21:14:41 -04:00
|
|
|
set splitbelow splitright
|
|
|
|
|
|
|
|
let g:netrw_banner = 0
|
|
|
|
let g:netrw_liststyle = 3
|
|
|
|
let g:netrw_browse_split = 4
|
|
|
|
let g:netrw_altv = 1
|
|
|
|
let g:netrw_winsize = 20
|
|
|
|
|
|
|
|
function! OpenNetRW()
|
2022-06-28 21:46:11 -04:00
|
|
|
Vexplore
|
2022-06-28 21:14:41 -04:00
|
|
|
endfunction
|
|
|
|
|
|
|
|
aug netrw_close
|
|
|
|
au!
|
|
|
|
au WinEnter * if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&filetype") == "netrw"|q|endif
|
|
|
|
aug END
|
2022-06-28 21:46:11 -04:00
|
|
|
|
2022-07-01 18:18:55 -04:00
|
|
|
nnoremap - :call OpenNetRW()<cr>
|
|
|
|
|
|
|
|
|
|
|
|
" gdb integration
|
|
|
|
|
|
|
|
let g:termdebug_popup = 0
|
|
|
|
let g:termdebug_wide = 100
|
|
|
|
|
|
|
|
au BufEnter term://* startinsert
|
|
|
|
au BufEnter *.c,*.cpp,*.h,*.hpp packadd termdebug
|
|
|
|
|
2022-07-16 18:56:03 -04:00
|
|
|
tnoremap <silent> <esc> <c-\><c-n><c-\><c-n>
|
|
|
|
|
2022-07-05 17:28:32 -04:00
|
|
|
nnoremap <silent> <f3> :Termdebug a.out<cr>
|
|
|
|
nnoremap <silent> <f4> :!g++ -g %:p<cr>
|
|
|
|
nnoremap <silent> <f5> :Run<cr>
|
2022-07-09 18:57:36 -04:00
|
|
|
nnoremap <silent> <f6> :Stop<cr>
|
2022-07-05 17:28:32 -04:00
|
|
|
nnoremap <silent> <f8> :Clear<cr>
|
2022-07-09 18:57:36 -04:00
|
|
|
nnoremap <silent> <f9> :Break<cr>
|
|
|
|
nnoremap <silent> <f10> :Continue<cr>
|
|
|
|
|
2022-07-16 18:56:03 -04:00
|
|
|
tnoremap <c-w> <c-\><c-n><c-\><c-n><c-w>
|
|
|
|
|
2022-07-05 17:28:32 -04:00
|
|
|
nnoremap <silent> <c-p> :Step<cr>
|
2022-07-09 18:57:36 -04:00
|
|
|
nnoremap <silent> <c-n> :Over<cr>
|
|
|
|
|
|
|
|
vnoremap <silent> K :'<,'>Evaluate<cr>
|