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 11cc21f148
commit 714c1fb05c
1 changed files with 3 additions and 5 deletions

View File

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