close a buffer without deleting its window
This commit is contained in:
parent
177aecda74
commit
179cd01b2c
1 changed files with 5 additions and 1 deletions
6
.vimrc
6
.vimrc
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue