close a buffer without deleting its window

This commit is contained in:
nojhan 2011-03-09 21:02:47 +01:00
commit 179cd01b2c

6
.vimrc
View file

@ -54,7 +54,7 @@ nnoremap <leader>h :%s/\/\*\_.*\*\/\n\{,1}\|^\s*\/\/.*\n\|\s*\/\/.*//<CR>:%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 <Plug>Kwbd