Ⅰ. 插件描述
Light your buffers upⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'soares/butane-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'soares/butane-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'soares/butane-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/soares/butane.vim
Ⅳ. 文档说明
# Butane: Vim Buffer Utilities
Light your buffers up.
Currently Butane provides only one simple command, the Bclose command, which
closes a buffer without changing the layout of your windows. (The most recently
used buffer, or failing that the previous buffer, or finally an empty file will
be placed in its place.)
If you want to give your buffers a bit of an extra spark I recommend the
following maps in your .vimrc or equivalent:
noremap <leader>bd :Bclose<CR> " Close the buffer.
noremap <leader>bl :ls<CR> " List buffers.
noremap <leader>bn :bn<CR> " Next buffer.
noremap <leader>bp :bp<CR> " Previous buffer.
noremap <leader>bt :b#<CR> " Toggle to most recently used buffer.
noremap <leader>bx :Bclose!<CR> " Close the buffer & discard changes.
Most of these commands are simple, but with a good leader key they are
much easier to hit than their built-in counterparts.