* Peng Yu [2007.02.22 16:15]:
> I read the help. But I still don't see how to search in all the *.h
> and *.cc in a certain directory. Do I have to rely on the external
> command "find"?

It would help if you told us what version of vim
you use and what you tried.

If you have vim 7, you can use:

:vimgrep pattern directory/**/*.h

See

:h wildcard

Otherwise:

:grep -r pattern directory

though that will search all files in the
directory, recursively.

If your 'shell' is zsh, then you can use zsh's
recursive globbing patterns:

:grep pattern directory/**/*.(h|cc)(.)

If you use indexing with glimpse, you can specify
which files in which directory to index.

man glimpse
man glimpseindex

-- 
JR

Reply via email to