vimrc: terminal mode enhancements

* add keybinds to run make in the {back,fore}ground and open the
  terminal once done
* add keybind to enter terminal normal mode easily
This commit is contained in:
surtur 2021-05-03 14:43:57 +02:00
parent 31e3b051f2
commit 1861310a9b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -221,10 +221,13 @@ command! -nargs=* Make write | make! <args> | cwindow
" open a terminal in $PWD
nnoremap <silent> <Leader>tt :terminal<CR>
" terminal normal mode
tnoremap <F1> <C-W>N
" toggle showing whitespace
noremap <F5> :set list!<CR>
" make shortcut
nnoremap <F4> :make!<cr>
nnoremap <F4> :term ++hidden ++open make<cr>
nnoremap <leader><F4> :term ++open make<cr>
nnoremap <F8> :TagbarToggle<CR>
" NERDTree
nmap <Leader>nt :NERDTreeToggle<CR>