https://github.com/schickling/vim-bufonly
Delete all the buffers except the current buffer.
https://github.com/schickling/vim-bufonly
Last synced: over 1 year ago
JSON representation
Delete all the buffers except the current buffer.
- Host: GitHub
- URL: https://github.com/schickling/vim-bufonly
- Owner: schickling
- Created: 2014-01-10T20:29:39.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T19:09:01.000Z (over 9 years ago)
- Last Synced: 2025-02-03T21:53:50.982Z (over 1 year ago)
- Language: VimL
- Size: 4.88 KB
- Stars: 41
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
vim-bufonly
===========
Delete all the buffers except the current buffer.
## Usage
`:BufOnly` without an argument will delete all buffers but the current one.
`:BufOnly myBuffer` with an argument will close all buffers but the supplied buffer name/number.
Aliases: `:Bonly`, `:BOnly`, `:Bufonly`
## Installation
This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
* Pathogen
* `git clone https://github.com/schickling/vim-bufonly ~/.vim/bundle/vim-bufonly`
* NeoBundle
* `NeoBundle 'schickling/vim-bufonly'`
* Vundle
* `Bundle 'schickling/vim-bufonly'`
* VAM
* `call vam#ActivateAddons([ 'vim-bufonly' ])`
* manual
* copy all of the files into your `~/.vim` directory
## Credits
This plugin is based on [Christian J. Robinson's script](http://www.vim.org/scripts/script.php?script_id=1071).