mirror of https://github.com/nirenjan/dotfiles.git
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
parent
4413d17282
commit
01dee42ba2
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue