mirror of https://github.com/nirenjan/vimfiles.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
11cc21f148
commit
714c1fb05c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue