kwbdi.vim


Ⅰ. 插件描述

Keep Window on Buffer Delete - Improved

Ⅱ. 基本信息

创建日期:  2007-12-18
使用用户:  60
Github星:  8
插件作者:  Ben Booth

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This is an improved version of kwbd.vim. It allows you to delete a buffer without closing the window. It meets the following criteria:

    * The window layout must be kept in all circumstances.
    * If there is an alternate buffer must be showing that.
    * If there is not alternate buffer then must be showing the preious buffer.
    * If there is no alternate nor previous buffer (it is the only buffer) must show an empty buffer.

If there are two windows with the same buffer open, both windows will remain open, and the buffer will be deleted

To delete a buffer while keeping the window open, just type bd

Thanks to the authors of kwbd.vim and minibufexpl.vim!

添加新评论