Buffersaurus - A Vim Plugin for Searching and Indexing Across Buffers

Description

provided include (among others):
:Bsgrep[!]
Search all buffers (or just current buffer if “!” given) for regular expression pattern, .
:Bstoc[!]
Construct a “table-of-contents” consisting of filetype-dependent “important” patterns (e.g. class and method/function definitions).
provided include (among others):
:Bsgrep[!]
Search all buffers (or just current buffer if “!” given) for regular expression pattern, .
:Bstoc[!]
Construct a “table-of-contents” consisting of filetype-dependent “important” patterns (e.g. class and method/function definitions).
egular expression 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 commands. Selected lines can be opened in the previous window, a new window split (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 as well as running arbitrary commands on the matched lines (or surrounding context lines) are also supported. The primary distribution page for Buffersaurus is here:

   http://www.vim.org/scripts/script.php?script_id=3620

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

Installation

If Pathogen is installed, you can install Buffersaurus by unpacking the source archive (or cloning the Git repository) in “$VIMRUNTIME/bundle”. Otherwise, unpack the source archive and copy “buffersaurus.vim” to “$VIMRUNTIME/plugin” and “buffersaurus.txt” to “$VIMRUNTIME/doc”.

Share