buffergrep 1.0

buffergrep is a Vim plugin that allows you to grep buffers, not files.
buffergrep is a Vim plugin that allows you to grep buffers, not files.

buffergrep searches for strings in open buffers. Instead of supplying a filename wildcard to direct the search, the grep command will search in open buffers which may or may not be represented by a file on the disk. Moreover, since buffers are searched, changes that have not been saved to disk are scanned. Unlisted, quickfix, and help buffers are skipped.

Each grep command uses the same syntax as the builtin :vimgrep and :lvimgrep commands. Results are displayed in the quickfix list.

The following commands are defined:

Bgrep - searches all buffers listed with the :buffers command, skipping over unlisted, quickfix, and help buffers. Analagous to :bufdo.
Agrep - searches all buffers listed with the :args command. Analagous to :argdo.
Wgrep - searches all buffers visible on the screen (current tab page only). Analagous to :windo.
Tgrep - searches all buffers open on any tabpage. Analagous to :tabdo.

Example:

Bgrep /jhonka/ "find string 'jhonka' in all loaded buffers
Wgrep |foo|j "find string 'foo' in all buffers currently on the screen, but don't jump to first match
Tgrep !bar!g "find string 'bar' in all buffers visible in all tabpages, and list each occurance of 'bar', not just the first one on a line.

About Vim:

Vim is a text editor first released by Bram Moolenaar in 1991 for the Amiga computer. Vim was created as an extended version of the vi editor, with many additional features designed to be helpful in editing program source code; its full name is Vi IMproved.

While Vim is cross-platform, it is most popular on Unix-like operating systems.

Released under a software license compatible with the GNU General Public License, Vim is free and open source software. The program's license includes some charityware clauses.

Like vi, Vim's interface is based not on menus or icons but on commands given in a text user interface; its GUI mode, gVim, adds menus and toolbars for commonly used commands but the full functionality is still expressed through its command line mode.

For many users learning Vim may be difficult and slow initially, but once the basics are understood they progress quickly and editing becomes more efficient. To facilitate this, Vim has a built-in tutorial for beginners. There is also the Vim Users' Manual that details the basic and more advanced Vim features. This manual can be read from within Vim, or found online.

Vim also has a built-in help facility (using the :help command) that allows users to query and navigate through commands and features.

Requirements:

Vim

INSTALLATION:

Copy into $HOME/.vim/plugins

last updated on:
June 25th, 2008, 22:24 GMT
price:
FREE!
developed by:
Erik Falor
license type:
GPL (GNU General Public License) 
category:
ROOT \ Text Editing&Processing \ Vim Plugins

FREE!

In a hurry? Add it to your Download Basket!

user rating 9

UNRATED
3.3/5
 

0/5

Add your review!

SUBMIT