]> gitweb.fluxo.info Git - rhatto/dotfiles/vim.git/commitdiff
Adds ESC key into some key combos
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 10 Oct 2017 10:58:26 +0000 (07:58 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 10 Oct 2017 10:58:26 +0000 (07:58 -0300)
vimrc.dot.link

index 54806ee40a9d6117a6253850a403ea7c80387bd3..205a924695cc0480ad924449c0dff9f600fbd2df 100644 (file)
@@ -124,10 +124,10 @@ nmap <ESC>n :tabnew<CR>
 "map \eq :wqa <CR>
 map \ec :wqa <CR>
 map \ef :wq <CR>
-"map \ec :tabclose <CR>
+"map \ec :tabclose <CR><ESC>
 map \ee :tabclose <CR>
-map \em :q! <CR>
-map \ew :w <CR>
+map \em :q! <CR><ESC>
+map \ew :w <CR><ESC>
 
 " Write, quit and close shortcuts using Ctrl-key combos
 " We're using these due to a conflict with wyrd(1)
@@ -241,10 +241,10 @@ map \eOd :bprevious<CR>
 map \eOc :bnext<CR>
 
 " Window navigation
-map \e<Left> <C-w><Left>
-map \e<Right> <C-w><Right>
-map \e<Down> <C-w><Down>
-map \e<Up> <C-w><Up>
+map \e<Left> <C-w><Left><ESC>
+map \e<Right> <C-w><Right><ESC>
+map \e<Down> <C-w><Down><ESC>
+map \e<Up> <C-w><Up><ESC>
 
 " See
 " http://vim.wikia.com/wiki/Have_Vim_check_automatically_if_the_file_has_changed_externally