https://github.com/thekelvinliu/kwbd
keep window buffer delete
https://github.com/thekelvinliu/kwbd
bd buffer delete keep kwbd vim vim-plugin vim-script window
Last synced: over 1 year ago
JSON representation
keep window buffer delete
- Host: GitHub
- URL: https://github.com/thekelvinliu/kwbd
- Owner: thekelvinliu
- License: mit
- Created: 2019-01-29T06:40:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-29T06:50:02.000Z (over 7 years ago)
- Last Synced: 2024-10-19T02:15:19.391Z (over 1 year ago)
- Topics: bd, buffer, delete, keep, kwbd, vim, vim-plugin, vim-script, window
- Language: Vim script
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kwbd
keep window buffer delete
## install
any package manager should do.
i use [vim-plug](https://github.com/junegunn/vim-plug).
```vim
call plug#begin()
Plug 'thekelvinliu/kwbd'
call plug#end()
```
## usage info
this plugin assumes `set hidden`.
currently, modified buffers will be closed **without confirmation**.
it can be invoked either via ex command:
```vim
:KWBD
```
or a plug mapping:
```vim
nmap a (kwbd)
```
# about
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](http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window#Alternative_Script) vim tips wiki article.