idutils : Simple interface with GNU id-utils (deprecated)
| script karma
Downloaded by 2101
Comments, bugs, improvements
script versions (upload new version)
|Hari Krishna Dara|
|This script has been superceded by vimscript #1062 with many enhancements.
This script provides a simple interface with GNU id-utils.
Summary Of Features:
IGInitialize, IDGrep, IDGrepAdd
g:IGlidcmd, g:IGfiltercmd, g:IGautoCopen
IDGrep [<lid argument> ...] <lid keyword pattern>
IDGrep <lid options> [+f <filter arguments> ...]
IDGrepAdd [<lid options> ...] <lid keyword pattern>
IDGrepAdd <lid arguments> [+f <filter arguments> ...]
You can use all the regular quickfix commands to traverse from one hit to
Each time you run IDGrepAdd, the new list of matches are added to the
existing list. This works the same as 'grepadd' command. If you can't
use a single filter to get all the matches then this command helps you to
still work with a single list instead of generating multiple lists.
Use the g:IGlidcmd, g:IGfiltercmd, g:IGautoCopen global variables to set
the path to 'lid' command, filter command name/path (defaults to 'grep')
and if the error list window should automatically be opened (runs
|:cwindow| at the end).
You can pass as many filters as you want, each prefixed with +f option.
The filter arguments are escaped such a way that the arguments are
passed through the shell, unmodified to the filter.
- Filter the lines that don't contain src.
IDGrep main +f src
- Filter the lines that contain src.
IDGrep main +f -v src
- To search for the current word in all the files and filter the results
not containing \.java in the grepped output. This will potentially
return all the occurences in the java files only.
IDGrep <cword> +f \.java
- If any argument contains spaces, then you need to protect them by
prefixing them with a backslash. The following will filter those lines
that don't contain "ABC XYZ".
IDGrep <cword> +f ABC\ XYZ
Search_key_words: idutils id-utils gnu id grep gid mkid lid Hari Krishna Dara
|Drop the file in your plugin directory or source it from your vimrc.
Requires Vim-6.2 or higher.
Requires genutils (vimscript#197) and multvals (vimscript #171)
Click on the package to download.
ip used for rating: 188.8.131.52