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).
|
" your ~/.vimrc file (or cut and paste it into your .vimrc).
|
||||||
"
|
"
|
||||||
" NOTE:
|
" NOTE:
|
||||||
" On pressing { in insert mode, this plugin will insert a corresponding closing
|
" On pressing {, ( or [ in insert mode, this plugin will insert a corresponding
|
||||||
" } and will also move the cursor up and indent one level.
|
" closing }, ) or ] and will place the cursor on the closing brace in insert
|
||||||
" On pressing ( or [, this plugin will insert the corresponding closing ) or ]
|
" mode.
|
||||||
" and will place the cursor on the closing ) or ] in insert mode.
|
|
||||||
"
|
"
|
||||||
" Nirenjan Krishnan nirenjan@gmail.com 2008/12/16
|
" Nirenjan Krishnan nirenjan@gmail.com 2013/05/16
|
||||||
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
" Braces {}
|
" Braces {}
|
||||||
" Typing { in insert mode will automatically insert a closing
|
" Typing { in insert mode will automatically insert a closing
|
||||||
" curly brace as well and place the curser on the closing brace
|
" curly brace as well and place the curser on the closing brace
|
||||||
imap { {}<Left>
|
inoremap { {}<Left>
|
||||||
|
|
||||||
" Parantheses ()
|
" Parantheses ()
|
||||||
" Typing ( in insert mode will automatically insert a closing
|
" Typing ( in insert mode will automatically insert a closing
|
||||||
" paranthesis as well and place the cursor on the closing paranthesis
|
" paranthesis as well and place the cursor on the closing paranthesis
|
||||||
" in insert mode.
|
" in insert mode.
|
||||||
imap ( ()<Left>
|
inoremap ( ()<Left>
|
||||||
|
|
||||||
" Brackets []
|
" Brackets []
|
||||||
" Typing [ in insert mode will automatically insert a closing
|
" Typing [ in insert mode will automatically insert a closing
|
||||||
" bracket as well and place the cursor on the closing bracket
|
" bracket as well and place the cursor on the closing bracket
|
||||||
" in insert mode.
|
" in insert mode.
|
||||||
imap [ []<Left>
|
inoremap [ []<Left>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue