SelectBuf


Ⅰ. 插件描述

A fast and extensible buffer explorer.

Ⅱ. 基本信息

创建日期:  2001-10-05
使用用户:  16
Github星:  2
插件作者:  Hari Krishna Dara

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

PLEASE READ THE INSTALL SECTION COMPLETELY.

SelectBuf is a buffer explorer similar to the file explorer plugin that comes
with Vim, the difference being that file explorer allows you to view the files
on the file system, where as buffer explorer limits the view to only the files
that are already opened in the current Vim session. It is even possible and
easy to extend the plugin with new commands.

Since the first time I released it in Jul '99 (try sending an email to
vim-thread.1235@vim.org), the script has gone many
revisions and enhancements both in technology and features, taking advantage of all the niceties that the new versions of Vim has to offer.

For detailed help, see ":help selectbuf" or read doc/selectbuf.txt.

  • Install the plugin, restart vim and press <F3> (the default key binding) to
      get the list of buffers.
  • Move the cursor on to the buffer that you need to select and press <CR> or
      double click with the left-mouse button.
  • If you want to close the window without making a selection, press <F3>
      again.
  • You can also press ^W<CR> or O to open the file in a new or previous window.
      You can use d to delete or D to wipeout the buffer. Use d again to

  undelete a previously deleted buffer (you need to first view the deleted
  buffers using u command).

You can change the default key mapping to open browser window by setting

      nmap <unique> <silent> <YourKey> <Plug>SelectBuf

Almost everything is configurable, including all the key mappings that are

  1. E.g., you can change the help key to <C-H> instead of the default ?,
  2. you can free it to do backward searches in the file list, using the

following mapping:

      noremap <silent> <Plug>SelBufHelpKey <C-H>

Some highlights of the features are:

  • It is super fast as the buffer list is cached and incrementally built as new
      files are added and the old ones are deleted.
  • Hide buffer numbers to save on real estate (goes well with "Always On" mode
      or when used with WinManager).
  • Opens a new window to avoid disturbing your existing windows. But you can
      change the behavior to reuse the current window or even to permanently keep

  it open.

  • You can select block of buffers and delete or wipeout all the buffers at once.
  • You can toggle various settings on and off while you are in the browser. You
      can e.g., toggle showing the buffer indicators by pressing i.
  • Goes very well with WinManager.
  • There are different sorting keys available. You can sort by buffer number,
      name, type (extension), path, indicators and MRU order. You can even select a

  default sort order

  • If you use multiple windows, then the browser restores the window sizes after
      closing it.
  • Syntax coloring makes it easy to find the buffer you are looking to switch to.
  • Full configurability.
  • Extensibility.
  • Support for WinManager and multiselect plugins.
  • and many more.

For more information, read the vim help on seletbuf.

Search_key_words: buffer selectbuf bufexplorer explorer list select multvals genutils multiselect Hari Krishna Dara

添加新评论