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 {}
|
" Braces {}
|
||||||
" Typing { in insert mode will automatically insert a closing
|
" Typing { in insert mode will automatically insert a closing
|
||||||
" curly brace as well and place the curser on the closing brace
|
" curly brace as well and place the curser on the closing brace
|
||||||
imap { {}<ESC>i
|
imap { {}<Left>
|
||||||
|
|
||||||
" Parantheses ()
|
" Parantheses ()
|
||||||
" Typing ( in insert mode will automatically insert a closing
|
" Typing ( in insert mode will automatically insert a closing
|
||||||
" paranthesis as well and place the cursor on the closing paranthesis
|
" paranthesis as well and place the cursor on the closing paranthesis
|
||||||
" in insert mode.
|
" in insert mode.
|
||||||
imap ( ()<ESC>i
|
imap ( ()<Left>
|
||||||
|
|
||||||
" Brackets []
|
" Brackets []
|
||||||
" Typing [ in insert mode will automatically insert a closing
|
" Typing [ in insert mode will automatically insert a closing
|
||||||
" bracket as well and place the cursor on the closing bracket
|
" bracket as well and place the cursor on the closing bracket
|
||||||
" in insert mode.
|
" in insert mode.
|
||||||
imap [ []<ESC>i
|
imap [ []<Left>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue