Ⅰ. 插件描述
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.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'arithran/deletehiddenbuffers'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'arithran/deletehiddenbuffers'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'arithran/deletehiddenbuffers'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/arithran/vim-delete-hidden-buffers
Ⅳ. 文档说明
## Description
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.
Usage
:DeleteHiddenBuffers
If you really like it, add the following to your .vimrc to bind a key like F5
nnoremap <F5> :DeleteHiddenBuffers<CR>
Installation
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 |