Buffersaurus


Ⅰ. 插件描述

Vim plugin to search, index, and navigate buffer content using regular expression patterns.

Ⅱ. 基本信息

创建日期:  2010-10-09
使用用户:  8
Github星:  40
插件作者:  Jeet Sukumaran

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Buffersaurus is a plugin for searching and indexing the contents of buffers
for regular expression patterns or collections of regular expression patterns.
Results are displayed in separate buffer, and can be (optionally) viewed with
user-specifiable lines of context (i.e., a number of lines before and/or after
the line matching the search pattern) or filtered for specific patterns.

Global commands provided include (among others):

:Bsgrep[!] {pattern}

Search all buffers (or just current buffer if "!" given) for regular
expression pattern, {pattern}.

:Bstoc[!]

Construct a "table-of-contents" consisting of filetype-dependent
"important" patterns (e.g. class and method/function definitions).

Other commands include those for filtering results, jumping to next/previous
matching line without opening the catalog, searching for special user-defined
terms (":Bsterm") etc.

The results list can be browsed/navigated using all the usual Vim movement

  1. Selected lines can be opened in the previous window, a new window
  2. (vertical or horizontal), or a new tab page. Context can be toggled (i.e.

show a user-specified number of lines before or after the matching line).
Results are grouped and sorted by filename, and then by line number, but can
also be ungrouped and sorted lexically.

Search and replace operations (using the ":Bsreplace" command, or "R" key
mapping), or execution of arbitrary commands ("x" or "X" key mapping),
can also be carried out on matched or contexted lines can be carried out

Detailed usage description is given in the help file, which can be viewed
on-line here:

http://github.com/jeetsukumaran/vim-buffersaurus/blob/master/doc/buffersaurus.txt

Source code repository can be found here:

http://github.com/jeetsukumaran/vim-buffersaurus

添加新评论