Browse Source

Add tab=escape

Olivier Marty 7 years ago
parent
commit
f54a697d89
1 changed files with 8 additions and 0 deletions
  1. 8 0
      vimrc

+ 8 - 0
vimrc

@@ -26,3 +26,11 @@ if has('persistent_undo')
     let &undodir = myUndoDir
     set undofile
 endif
+
+" tab = escape
+nnoremap <Tab> <Esc>
+vnoremap <Tab> <Esc>gV
+onoremap <Tab> <Esc>
+inoremap <Tab> <Esc>`^
+" \tab insert a tab
+inoremap <Leader><Tab> <Tab>