A Neovim plugin to sweep Vim buffers.
Inspired by BufOnly.vim.
use { "mogulla3/buf-sweep.nvim" }
Plug "mogulla3/buf-sweep.nvim"
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.