Ⅰ. 插件描述
Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'smitajit/bufutils-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'smitajit/bufutils-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'smitajit/bufutils-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/smitajit/bufutils.vim
Ⅳ. 文档说明
# bufutils.vim
bufutils.vim provide utilities to Open/Close/Refesh buffers faster
Installation:
Vundle
- Add Plugin 'smitajit/bufutils.vim' to your .vimrc file and call :PluginInstall
pathogen
- git clone https://github.com/smitajit/bufutils.vim ~/.vim/bundle/bufutil.vim
Basic Usage
- :BCloseAll -- will close all buffers
- :BClosePreviews -- will close preview buffers , help buffers , localtion buffers and if nerd tree is Opened it will call NERDTreeToggle
- :BCloseLeft -- will close all buffers to the left of the current buffer
- :BCloseRight -- will close all buffers to the right of the current buffer
- :BCloseOther -- will close all buffers except the current buffer
- :BCloseThis -- will close this buffer
- :BOpen -- Will open a file. The argument to this is the filepath
- :BOpenSVertical -- Will open a file in vertical split. The argument to this is the filepath
- :BOpenSHorizontal -- Will opena a file in horizontal split. The argument to this is the filepath
- :BRefresh -- Will refresh the current buffer
vimrc key mapping
- Add the below key mapping to your .vimrc for better bufutils use:
map qq :BClosePreviews<cr>
map qa :BCloseAll<cr>
map ql :BCloseLeft<cr>
map qr :BCloseRight<cr>
map qo :BCloseOther<cr>
map qt :BCloseThis<cr>