From 01dee42ba2ef09f6b8f498023d95f5048a94faf1 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 20 Feb 2013 12:33:42 -0800 Subject: [PATCH] Fix vim-undo for match-brackets plugin Instead of using i to get out of insert mode and reenter it at the closing bracket, Vim accepts the use of to move the cursor left without leaving insert mode. This allows undo and repeats to work. --- vim/plugin/match-brackets.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vim/plugin/match-brackets.vim b/vim/plugin/match-brackets.vim index 70e39d9..3773a97 100644 --- a/vim/plugin/match-brackets.vim +++ b/vim/plugin/match-brackets.vim @@ -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 { {}i +imap { {} " 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 ( ()i +imap ( () " 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 [ []i +imap [ []