All Projects → Asheq → Close Buffers.vim

Asheq / Close Buffers.vim

📖 Quickly close (bdelete) several buffers at once 📕

Projects that are alternatives of or similar to Close Buffers.vim

Aerojump.nvim
Aerojump is a fuzzy-match searcher/jumper for Neovim with the goal of quick keyboard navigation
Stars: ✭ 184 (+85.86%)
Mutual labels:  plugin, neovim
Vimpyter
Edit your Jupyter notebooks in Vim/Neovim
Stars: ✭ 308 (+211.11%)
Mutual labels:  plugin, neovim
Vim Sneak
The missing motion for Vim 👟
Stars: ✭ 2,467 (+2391.92%)
Mutual labels:  plugin, neovim
Iris.vim
📫 Simple mail client for Vim.
Stars: ✭ 148 (+49.49%)
Mutual labels:  plugin, neovim
Vim Dirvish
Directory viewer for Vim ⚡️
Stars: ✭ 929 (+838.38%)
Mutual labels:  plugin, neovim
Vim Svelte
Vim syntax highlighting and indentation for Svelte 3 components.
Stars: ✭ 158 (+59.6%)
Mutual labels:  plugin, neovim
Gen tags.vim
Async plugin for vim and neovim to ease the use of ctags/gtags
Stars: ✭ 288 (+190.91%)
Mutual labels:  plugin, neovim
Vim Yoink
Vim plugin that maintains a yank history to cycle between when pasting
Stars: ✭ 225 (+127.27%)
Mutual labels:  plugin, neovim
Markdown Preview.vim
⚠️ PLEASE USE https://github.com/iamcco/markdown-preview.nvim INSTEAD
Stars: ✭ 764 (+671.72%)
Mutual labels:  plugin, neovim
Gina.vim
👣 Asynchronously control git repositories in Neovim/Vim 8
Stars: ✭ 587 (+492.93%)
Mutual labels:  plugin, neovim
Vim Laravel
Vim support for Laravel/Lumen projects
Stars: ✭ 128 (+29.29%)
Mutual labels:  plugin, neovim
Vim Crates
Handle Cargo dependencies like a Rustavimean.
Stars: ✭ 54 (-45.45%)
Mutual labels:  plugin, neovim
Nvim Lspconfig
Quickstart configurations for the Nvim LSP client
Stars: ✭ 3,410 (+3344.44%)
Mutual labels:  plugin, neovim
Vim Subversive
Vim plugin providing operator motions to quickly replace text
Stars: ✭ 168 (+69.7%)
Mutual labels:  plugin, neovim
Nvim Toggleterm.lua
A neovim lua plugin to help easily manage multiple terminal windows
Stars: ✭ 102 (+3.03%)
Mutual labels:  plugin, neovim
Comfortable Motion.vim
Brings physics-based smooth scrolling to the Vim world!
Stars: ✭ 543 (+448.48%)
Mutual labels:  plugin, neovim
Neoformat
✨ A (Neo)vim plugin for formatting code.
Stars: ✭ 977 (+886.87%)
Mutual labels:  plugin, neovim
Sniprun
A neovim plugin to run lines/blocs of code (independently of the rest of the file), supporting multiples languages
Stars: ✭ 93 (-6.06%)
Mutual labels:  plugin, neovim
Asyncrun.vim
🚀 Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
Stars: ✭ 1,332 (+1245.45%)
Mutual labels:  neovim
Klak
Creative coding library for Unity
Stars: ✭ 1,347 (+1260.61%)
Mutual labels:  plugin

close-buffers.vim

This plug-in allows you to quickly bdelete several buffers at once. It is useful if you want to prune your buffer list or free up memory.

It provides a command called Bdelete that takes a single parameter specifying which buffers to bdelete. See the list of possible parameters below.

Demo Video

demo

Commands

Command Description Native version
:Bdelete other 🔥 bdelete all buffers except the buffer in the current window
:Bdelete hidden 🔥 bdelete buffers not visible in a window
:Bdelete all bdelete all buffers :bufdo bdelete
:Bdelete this bdelete buffer in the current window :bdelete
:Bdelete nameless bdelete buffers without a name: [No Name]
:Bdelete select Lets you interactively select which buffers to bdelete
:Bdelete menu Lets you interactively choose one of the other commands above

Recommended key mapping

I recommend one of the following key mappings:

nnoremap <silent> <C-q> :Bdelete menu<CR>
nnoremap <silent> Q     :Bdelete menu<CR>

Install

You can use any plugin manager you want. Some popular options:

  • vim-plug: Plug 'Asheq/close-buffers.vim'
  • Vundle: Plugin 'Asheq/close-buffers.vim'
  • pathogen: cd ~/.vim/bundle && git clone git://github.com/asheq/close-buffers.vim.git
  • Manual: Copy the files into your .vim directory.

Other Info

Buffers with unsaved changes

By default, Bdelete will fail to bdelete modified buffers, i.e., buffers that have unsaved changes.

In order to force Bdelete to bdelete modified buffers, add a bang to the end of the command, i.e., Bdelete!.

Alternatively, you can configure Vim to ask you to confirm each modified buffer that would be bdeleted. This can be done by setting the native Vim confirm option with :set confirm.

Bwipeout

If you know what you are doing, you can use Bwipeout instead of Bdelete to bwipeout buffers instead of bdelete them. The Bwipeout command has the same parameters as Bdelete.

Inspiration

This plugin was inspired by vim-bufonly, but adds several related features.

License

Same license as Vim itself.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].