mirror of https://github.com/nirenjan/dotfiles.git
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
parent
5c6495c981
commit
8eb278a3d0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue