greplist.vim 1.0

greplist.vim is a vimgrep location list manager for Vim.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
GPL (GNU General Public License) 
2.5/5 20
Yuri Klubakov
ROOT \ Text Editing&Processing \ Others
greplist.vim is a vimgrep location list manager for Vim.

This plug-in is for someone who often does multi-file search in multiple locations and these locations often change when for example you work on several different projects. It helps to maintain a list of frequently used vimgrep locations and defines commands to edit a list and to perform a search in the selected locations.

:GrepListConfig command loads a list for editing. A list is kept in "$HOME/_vimgrep" file or in "$VIM/_vimgrep" file if $HOME is not defined. If "_vimgrep" file does not exist or empty, a sample list is created. Status line shows useful normal mode mappings:

'q' - abandon any changes and wipe the buffer
's' - save the changes and wipe the buffer
' ' - select/deselect current line (selected lines start with '+')

:GrepListFind(mode) command prompts for the string to find and starts the vimgrep search in the selected locations. The default value for the search string is either the current visual selection (mode != 0) or the current word (mode == 0). Plug-in automatically surrounds the search string with '/' and adds 'j' option.

As usual, it is more convenient to create mappings for these commands. For example:

noremap < F8 > :GrepListFind 0< CR >
inoremap < F8 > < C-O >:GrepListFind 0< CR >
vnoremap < F8 > < C-C >:GrepListFind 1< CR >

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.


· Vim


Download and copy greplist.vim to $HOME/vimfiles/plugin or
$VIM/vimfiles/plugin directory.

Last updated on May 13th, 2008

#list manager #location manager #multi-file searcher #multiple #file #searcher #location

Add your review!