buflist


Ⅰ. 插件描述

Buffer browser

Ⅱ. 基本信息

创建日期:  2004-08-16
使用用户:  1
Github星:  1
插件作者:  Fabien Bouleau

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

The buffer browser plugin provides you an easy way to switch from a buffer to another. The layout has been inspired on the taglist script.

Press the <F4> key to toggle the buffer list on and off. Help can be displayed by pressing the 'h' key.

General keymaps:

  • <S-F3>/<S-F4> to decrease/increase window height by 1
  • <C-S-F3>/<C-S-F4> to decrease/increase window height by 5

Usage when not in buffer list:

  • <F4> to open/access buffer list panel
  • \0 to \9 to mark window with number
  • \p to mark window as preview window

Usage when in buffer list:

  • h to toggle help
  • q to close buffer list (same as CTRL-W q)
  • p to preview file in preview window
  • d to delete currently selected buffer
  • u to update buffer list
  • x to toggle path display
  • s to toggle sorting by buffer number/name/extension
  • n/N to edit file in new window below/above <F4>
  • <CR> to edit file in last window visited before <F4>
  • \0 to \9 to edit file in window marked 0 to 9
  • <F4> to go back to <F4> window
  • <S-F3> to decrease buffer list width by 1
  • <S-F4> to increase buffer list width by 1
  • <C-S-F3> to decrease buffer list width by 5
  • <C-S-F4> to increase buffer list width by 5

Remark: the is in fact defined as <Leader>, it might thus change regarding your environment settings.

Change log:

From 1.6 to 1.7:

  • g:BufList_Hide set to 1 or 0 whether the buflist panel shall be respectively hidden or not once buffer is selected (<CR> key).
  • Copy buffer no longer erased when buffer is selected or when panel is updated.

From 1.5 to 1.6:

  • buffer path display bug fix
  • nonumber set for buffer list (thanks to Ian)
  • <C-S-F3>/<C-S-F4> for increasing/decreasing window size

添加新评论