From 1861310a9be2c79640e0668a940f2e512f6ecae2 Mon Sep 17 00:00:00 2001 From: surtur Date: Mon, 3 May 2021 14:43:57 +0200 Subject: [PATCH] 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 --- .vim/vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vim/vimrc b/.vim/vimrc index 3bf5522..2e33dc8 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -221,10 +221,13 @@ command! -nargs=* Make write | make! | cwindow " open a terminal in $PWD nnoremap tt :terminal +" terminal normal mode +tnoremap N " toggle showing whitespace noremap :set list! " make shortcut -nnoremap :make! +nnoremap :term ++hidden ++open make +nnoremap :term ++open make nnoremap :TagbarToggle " NERDTree nmap nt :NERDTreeToggle