From 290ac61b9c7eadac042ec5bb2622f1a2da47bb76 Mon Sep 17 00:00:00 2001 From: Jidbo Date: Fri, 23 Aug 2019 12:54:21 +0200 Subject: [PATCH] add bracket expand remaps --- .vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index e4fa28f..056ec40 100644 --- a/.vimrc +++ b/.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 noremap noremap +" auto expand brackets +inoremap (; ()O +inoremap (, (),O +inoremap {; {}O +inoremap {, {},O +inoremap [; []O +inoremap [, [],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