IDSearch : Plugin to supplement id-utils gid command for super-fast find-in-files.
script karma |
Rating 11/5,
Downloaded by 732 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Shrey Banga |
|
script type |
utility |
|
description |
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.
Note:
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
eg:
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). |
|
script versions (upload new version)
Click on the package to download.
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: 18.213.110.162
|