Fix { keymap in match-brackets.vim

The { mapping used to open a C-style block, however, it gave several
problems when dealing with Perl code and hashes. This converts it to
simply working as {}, like the ( -> () and [ -> [] mappings.
vimbundler
nirenjan 2013-01-18 14:42:15 -08:00
parent 5c6495c981
commit 8eb278a3d0
1 changed files with 3 additions and 5 deletions

View File

@ -23,11 +23,9 @@
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Braces {}
" Typing { in insert mode will automatically render as
" <whatever text came before>{
" <cursor placed here>
" }
imap { {<CR>}<ESC>O<TAB>
" Typing { in insert mode will automatically insert a closing
" curly brace as well and place the curser on the closing brace
imap { {}<ESC>i
" Parantheses ()
" Typing ( in insert mode will automatically insert a closing