dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 6bd0909557d436ed5f5ca7de8893b0e656f379c5
parent f6182c6e64bdf7dbb58be84bbedca129c784feed
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Tue, 19 Dec 2017 20:57:40 -0500

Improve key bindings related to terminal mode

Diffstat:
Mlinks/.vim/plugin/keybinds.vim | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/links/.vim/plugin/keybinds.vim b/links/.vim/plugin/keybinds.vim @@ -83,6 +83,10 @@ if exists(':tnoremap') " escape from terminal mode tnoremap <Esc> <C-\><C-n> + " send escape to terminal + tnoremap <M-[> <Esc> + tnoremap <C-v><Esc> <Esc> + " navigate away from terminals tnoremap <C-h> <C-\><C-n><C-w>h tnoremap <C-j> <C-\><C-n><C-w>j @@ -91,7 +95,8 @@ if exists(':tnoremap') end " launch terminal in current window -nnoremap <leader><CR> :terminal bash<CR> +"nnoremap <leader><CR> :terminal bash<CR> +nnoremap <leader><CR> :terminal<CR> let g:tmux_navigator_no_mappings = 1 nnoremap <silent> <C-h> :TmuxNavigateLeft<CR>