add bracket expand remaps
This commit is contained in:
parent
e7684beeb9
commit
290ac61b9c
1 changed files with 9 additions and 1 deletions
10
.vimrc
10
.vimrc
|
@ -6,7 +6,7 @@ set rtp+=~/.vim/bundle/Vundle.vim
|
|||
call vundle#begin()
|
||||
|
||||
" let Vundle manage Vundle, required
|
||||
Plugin 'gmarik/Vundle.vim'
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
|
||||
" add all your plugins here (note older versions of Vundle
|
||||
" used Bundle instead of Plugin)
|
||||
|
@ -143,6 +143,14 @@ noremap <Down> <Nop>
|
|||
noremap <Left> <Nop>
|
||||
noremap <Right> <Nop>
|
||||
|
||||
" auto expand brackets
|
||||
inoremap (; (<CR>)<C-c>O
|
||||
inoremap (, (<CR>),<C-c>O
|
||||
inoremap {; {<CR>}<C-c>O
|
||||
inoremap {, {<CR>},<C-c>O
|
||||
inoremap [; [<CR>]<C-c>O
|
||||
inoremap [, [<CR>],<C-c>O
|
||||
|
||||
" Delete buffer while keeping window layout (don't close buffer's windows).
|
||||
" Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165
|
||||
if v:version < 700 || exists('loaded_bclose') || &cp
|
||||
|
|
Loading…
Add table
Reference in a new issue