https://github.com/h3pei/buf-sweep.nvim
A Neovim plugin to sweep Vim buffers.
https://github.com/h3pei/buf-sweep.nvim
lua neovim
Last synced: about 1 year ago
JSON representation
A Neovim plugin to sweep Vim buffers.
- Host: GitHub
- URL: https://github.com/h3pei/buf-sweep.nvim
- Owner: h3pei
- License: mit
- Created: 2022-11-06T13:26:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-22T08:20:01.000Z (about 1 year ago)
- Last Synced: 2025-03-22T09:23:42.791Z (about 1 year ago)
- Topics: lua, neovim
- Language: Lua
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buf-sweep.nvim
A Neovim plugin to sweep Vim buffers.
Inspired by [BufOnly.vim](https://github.com/vim-scripts/BufOnly.vim).
## Installation
[packer.nvim](https://github.com/wbthomason/packer.nvim)
```lua
use { "h3pei/buf-sweep.nvim" }
```
[vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug "h3pei/buf-sweep.nvim"
```
## Usage
`buf-sweep.nvim` provides just two command `:BufSweep` and `:BufSweep!`.
- `:BufSweep` deletes all buffers except the current buffer. But buffers with unsaved changes are not deleted.
- `:BufSweep!` deletes all buffers except the current buffer, even if there are unsaved changes.