sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

IDSearch : Plugin to supplement id-utils gid command for super-fast find-in-files.

 script karma  Rating 9/3, Downloaded by 328    Comments, bugs, improvements  Vim wiki

created by
Shrey Banga
script type
This is a plugin to use id-utils (http://www.gnu.org/software/idutils/) gid command for quickly finding in files. This plugin searches for a given word and lists the results in a small window. As you move over the results, each file is shown in the preview window.

Now on Github: https://github.com/milkbikis/IDSearch.vim

To edit the previewed file in the same window, press Enter (<CR>). To go back to the original file, press H.
To open it in a new tab, press t.
To open silently in a new tab, press T.

This is my first attempt at writing a vim script. I used NERDTree's source to learn how to do certain things. It's a fantastic plugin for file exploration and more.
install details
Install id-utils and generate ID file for your project tree with mkid.
Map the g:IDSearchCurrentWord() and g:IDSearchCustom() to suitable keys
map <C-F> :call g:IDSearchCurrentWord()<CR>
map <C-G> :call g:IDSearchCustom()<CR>

This will search for the word under the cursor when Ctrl-f is pressed and prompt you for the search word when Ctrl-g is pressed. The word can use * and ? wildcards (see id-utils manual for details).

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
IDsearch.vim 1.0.1 2011-06-17 7.0 Shrey Banga - Mapping the 'h' key to show original file. This key can be changed by setting the g:IDSearch_KEY_show_original variable in your vimrc.
IDsearch.vim 1.0 2011-06-17 7.0 Shrey Banga Initial upload
ip used for rating:

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