From 6c0aa48ddac5018422e340904f182959092c5f2a Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 16 May 2013 23:46:53 -0700 Subject: [PATCH] Fix match-brackets.vim plugin to use inoremap --- vim/plugin/match-brackets.vim | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/vim/plugin/match-brackets.vim b/vim/plugin/match-brackets.vim index 3773a97..184dce0 100644 --- a/vim/plugin/match-brackets.vim +++ b/vim/plugin/match-brackets.vim @@ -14,28 +14,27 @@ " your ~/.vimrc file (or cut and paste it into your .vimrc). " " NOTE: -" On pressing { in insert mode, this plugin will insert a corresponding closing -" } and will also move the cursor up and indent one level. -" On pressing ( or [, this plugin will insert the corresponding closing ) or ] -" and will place the cursor on the closing ) or ] in insert mode. +" On pressing {, ( or [ in insert mode, this plugin will insert a corresponding +" closing }, ) or ] and will place the cursor on the closing brace in insert +" mode. " -" Nirenjan Krishnan nirenjan@gmail.com 2008/12/16 +" Nirenjan Krishnan nirenjan@gmail.com 2013/05/16 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Braces {} " Typing { in insert mode will automatically insert a closing " curly brace as well and place the curser on the closing brace -imap { {} +inoremap { {} " 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 ( () +inoremap ( () " 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 [ [] +inoremap [ []