keep window buffer delete
any package manager should do. i use vim-plug.
call plug#begin()
Plug 'thekelvinliu/kwbd'
call plug#end()
this plugin assumes set hidden
.
currently, modified buffers will be closed without confirmation.
it can be invoked either via ex command:
:KWBD
or a plug mapping:
nmap <leader>a <plug>(kwbd)
use this if you don't want a buffer's containing window to close when it is deleted. there are already tons of scripts out there do this, and this is mine. based on this vim tips wiki article.