From 179cd01b2c6793721707a90e3bd6ca9aaf53b67e Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 9 Mar 2011 21:02:47 +0100 Subject: [PATCH] close a buffer without deleting its window --- .vimrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index d8f4dcd..eb88726 100644 --- a/.vimrc +++ b/.vimrc @@ -54,7 +54,7 @@ nnoremap h :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//:%s/^\s set list set listchars=tab:▸\ " print tabs with a special character (add ",eol:·" for end of lines) -au FocusLost * :wa " save every opened buffer when the window lost focus +"au FocusLost * :wa " save every opened buffer when the window lost focus set laststatus=2 " always show the statusline, even when there is only one file edited @@ -153,3 +153,7 @@ let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"] au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif set completeopt=menuone,menu,longest,preview +" close the buffer without deleting its window +:runtime plugins/bclose.vim +nmap :bc Kwbd +