commit e376b46adf4e14cbc8440dd4aa81649df1c43800 parent 3fc54ffebb542fc8d83e562077c9bebc23b04002 Author: Anders Damsgaard <andersd@riseup.net> Date: Mon, 4 Dec 2017 11:29:17 -0500 Merge branch 'master' of github.com:anders-dc/dotfiles Diffstat:
M | links/.vim/plugin/keybinds.vim | | | 18 | ++++++++++-------- |
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/links/.vim/plugin/keybinds.vim b/links/.vim/plugin/keybinds.vim @@ -79,14 +79,16 @@ nnoremap <leader>X :s/\[[x ]\]/\=submatch(0) == '[x]' ? '[ ]': '[x]'/<CR>:noh<CR nnoremap <leader>u :Fp ^- \[ \]<CR> nnoremap <leader>U :Fe<CR> -" 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 +if exists(':tnoremap') + " escape from terminal mode + tnoremap <Esc> <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 +end " launch terminal in current window nnoremap <leader><CR> :terminal bash<CR>