When you work on a project for a long period you tend you accumulate a lot of background buffers. This plug-in will clear any unused buffers that are hidden. Don't worry this will not delete any active or unsaved buffers.
:DeleteHiddenBuffers
nnoremap <F5> :DeleteHiddenBuffers<CR>
This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:
| Plugin Manager | Install with... |
|---|---|
| NeoBundle | NeoBundle 'arithran/vim-delete-hidden-buffers' |
| Vundle | Plugin 'arithran/vim-delete-hidden-buffers' |
| Plug | Plug 'arithran/vim-delete-hidden-buffers' |
| manual | copy all of the files into your ~/.vim directory |