Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Perform :vimgrep over arguments, buffers, windows.
VimL
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
autoload
doc
plugin
README

README

This is a mirror of http://www.vim.org/scripts/script.php?script_id=4173

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.
Something went wrong with that request. Please try again.