Fix vim-undo for match-brackets plugin

Instead of using <ESC>i to get out of insert mode and reenter it at
the closing bracket, Vim accepts the use of <Left> to move the cursor
left without leaving insert mode. This allows undo and repeats to work.
vimbundler
nirenjan 2013-02-20 12:33:42 -08:00
parent 4413d17282
commit 01dee42ba2
1 changed files with 3 additions and 3 deletions

View File

@ -25,17 +25,17 @@
" Braces {}
" Typing { in insert mode will automatically insert a closing
" curly brace as well and place the curser on the closing brace
imap { {}<ESC>i
imap { {}<Left>
" Parantheses ()
" Typing ( in insert mode will automatically insert a closing
" paranthesis as well and place the cursor on the closing paranthesis
" in insert mode.
imap ( ()<ESC>i
imap ( ()<Left>
" Brackets []
" Typing [ in insert mode will automatically insert a closing
" bracket as well and place the cursor on the closing bracket
" in insert mode.
imap [ []<ESC>i
imap [ []<Left>