mirror of https://github.com/nirenjan/dotfiles.git
Fix match-brackets.vim plugin to use inoremap
parent
a1b0e38245
commit
6c0aa48dda
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue