add bracket expand remaps

This commit is contained in:
Jidbo 2019-08-23 12:54:21 +02:00
parent e7684beeb9
commit 290ac61b9c

10
.vimrc
View file

@ -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