IDSearch : Plugin to supplement id-utils gid command for super-fast find-in-files.
| script karma
Downloaded by 259
Comments, bugs, improvements
script versions (upload new version)
|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 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).
Click on the package to download.
ip used for rating: 184.108.40.206
||- 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.