Oops, forgot to send this to the list...
On 18/08/06, Jerin Joy <[EMAIL PROTECTED]> wrote:
Hi,
I have a lot of source code distributed over a directory hierarchy
structure. I always need to find class declarations, instances where
variables are set etc. Usually I just go to command line and run
something like
find . -name "*.vr" -print | xargs grep 'class foo'
Isn't there an easier way to do this in vim? I can't use cscope since
the source is not in C.
Have you tried:
:grep -r --include '*.vr' 'class foo' *
cw
(untested and I'm a bit rusty and on the wrong OS at the moment).
There's probably a similar solution with :vimgrep
Hope that helps,
Al