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:
parent
31e3b051f2
commit
1861310a9b
@ -221,10 +221,13 @@ command! -nargs=* Make write | make! <args> | cwindow
|
|||||||
|
|
||||||
" open a terminal in $PWD
|
" open a terminal in $PWD
|
||||||
nnoremap <silent> <Leader>tt :terminal<CR>
|
nnoremap <silent> <Leader>tt :terminal<CR>
|
||||||
|
" terminal normal mode
|
||||||
|
tnoremap <F1> <C-W>N
|
||||||
" toggle showing whitespace
|
" toggle showing whitespace
|
||||||
noremap <F5> :set list!<CR>
|
noremap <F5> :set list!<CR>
|
||||||
" make shortcut
|
" make shortcut
|
||||||
nnoremap <F4> :make!<cr>
|
nnoremap <F4> :term ++hidden ++open make<cr>
|
||||||
|
nnoremap <leader><F4> :term ++open make<cr>
|
||||||
nnoremap <F8> :TagbarToggle<CR>
|
nnoremap <F8> :TagbarToggle<CR>
|
||||||
" NERDTree
|
" NERDTree
|
||||||
nmap <Leader>nt :NERDTreeToggle<CR>
|
nmap <Leader>nt :NERDTreeToggle<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user