vim-closebuffer


Ⅰ. 插件描述

Close a buffer without closing its window

Ⅱ. 基本信息

创建日期:  2010-08-05
使用用户:  1
Github星:  2
插件作者:  Scott Bronson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'bronson/vim-closebuffer'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'bronson/vim-closebuffer'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'bronson/vim-closebuffer'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/bronson/vim-closebuffer

Ⅳ. 文档说明

This allows you to close a buffer in Vim without affecting the window
it's in. Normally when you close a buffer, its window closes too,
forcing you to re-layout all your windows.

If you hit ^W^E, the buffer closes and your windows remain untouched.

Slightly modified from http://vim.wikia.com/wiki/Deleting_a_buffer_without_closing_the_window

TODO: just discovered http://www.vim.org/scripts/script.php?script_id=2103
which appears to be even better?
There also appears to be http://www.vim.org/scripts/script.php?script_id=1147
but it looks more complex than necessary?

Homepage: http://github.com/bronson/vim-closebuffer

添加新评论