Fix match-brackets.vim plugin to use inoremap

vimbundler
nirenjan 2013-05-16 23:46:53 -07:00
parent 741f53aa69
commit 90415aa043
1 changed files with 7 additions and 8 deletions

View File

@ -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 { {}<Left>
inoremap { {}<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 ( ()<Left>
inoremap ( ()<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 [ []<Left>
inoremap [ []<Left>