On 3/21/2012 1:53 PM, Roman Dobosz wrote:
Is it possible to vimgrep all opened buffers, not just the current one?
You have received some examples of functions you can add to your .vimrc to accomplish what you need.

This is what I did when I first started with Vim.

Went here:
http://www.vim.org/scripts/index.php
Clicked on Browse All
Went to the bottom of the page and changed the Sort By to:
Downloads, Descending
Hit Search

Then over the next 4 pages of results, I looked at the Script Name and Summary. If it sounded like I might use it, I clicked on it and looked into the authors full description. Then if interested I downloaded it.

For example, the top 2, I use nearly every 5 minutes while in Vim:

taglist.vim utility 9906 185125 Source code browser (supports C/C++, java, perl, python, tcl, sql, php, etc)
bufexplorer.zip     utility     2806     78937     Buffer Explorer / Browser


rails.vim, I don't use Ruby, so ignored it.

Many are language dependent, if I don't use that language, I ignore it.

On the 2nd page you will find:
grep.vim utility 891 24959 Grep search tools integration with Vim

Not only will it grep for files on your drive, but it will also grep only through open buffers, which just so happens to be what you want.
All wrapped up in a nice interface with all the bells and whistles you need.


Go have a look and it will save you time in the long run.

HTH,
Dave

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to