sponsor Vim development Vim logo Vim Book Ad

GrepCommands : Perform :vimgrep over arguments, buffers, windows.

 script karma  Rating 1/1, Downloaded by 309    Comments, bugs, improvements  Vim wiki

created by
Ingo Karkat
 
script type
utility
 
description
DESCRIPTION
This plugin defines variants of the built-in :vimgrep command which target
all arguments, listed buffers, windows in the current tab page or all tab
pages for its search. Additionally, the search defaults to the current search
string, so using these commands is often much faster than building the
equivalent search with :vimgrep.

SEE ALSO
- The GrepHere plugin (vimscript #4191) provides a :GrepHere command that
  covers only the current buffer.

RELATED WORKS
- This is a modern re-implementation of the similar commands defined by
  greputils.vim (vimscript #1062), which hasn't been updated since 2005.

USAGE
:ArgGrep[Add][!] [{pattern}]
:ArgGrep[Add][!] /{pattern}/[g][j]
                        Search for {pattern} (or current search string if
                        omitted) in all files from the argument-list and set
                        the error list to the matches.

:BufGrep[Add][!] [{pattern}]
:BufGrep[Add][!] /{pattern}/[g][j]
                        Search for {pattern} (or current search string if
                        omitted) in all listed buffers and set the error list
                        to the matches.

:WinGrep[Add][!] [{pattern}]
:WinGrep[Add][!] /{pattern}/[g][j]
                        Search for {pattern} (or current search string if
                        omitted) in all buffers visible in the current tab
                        page and set the error list to the matches.

:TabGrep[Add][!] [{pattern}]
:TabGrep[Add][!] /{pattern}/[g][j]
                        Search for {pattern} (or current search string if
                        omitted) in all buffers visible in all tab pages and
                        set the error list to the matches.
 
install details
INSTALLATION
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
    vim GrepCommands.vmb.gz
    :so %
To uninstall, use the :RmVimball command.

DEPENDENCIES
- Requires Vim 7.0 or higher.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
GrepCommands-1.01.vmb.gz 1.01 2012-08-24 7.0 Ingo Karkat BUG: Forgot to append l:patternFlags and enclose in delimiters when there's a non-whitespace pattern; this makes the GrepHere plugin's mappings wrongly jump to the first match.
GrepCommands.vba.gz 1.00 2012-08-16 7.0 Ingo Karkat Initial upload
ip used for rating: 54.197.111.87

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo