commit 45cdff73a1923dbca51ddcb140ec223bb218a049
parent 898cd7c3339f7882018b0e032d6368a38ca6c72f
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Sun, 6 Dec 2015 10:12:38 +0100
add navigation from terminal splits
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.vimrc b/.vimrc
@@ -370,6 +370,12 @@ if has('nvim')
" escape from terminal mode
tnoremap <leader>e <C-\><C-n>
+ " navigate away from terminals
+ tnoremap <C-h> <C-\><C-n><C-w>h
+ tnoremap <C-j> <C-\><C-n><C-w>j
+ tnoremap <C-k> <C-\><C-n><C-w>k
+ tnoremap <C-l> <C-\><C-n><C-w>l
+
" launch terminal in current window
nmap <leader>t :terminal<CR>
endif