GrepCommands : Perform :vimgrep over arguments, buffers, windows.
| script karma |
Rating 1/1,
Downloaded by 151
|
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. |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 50.16.36.153
|