On Tue, 05 Dec 2006, A.J.Mechelynck wrote:
> KLEIN Stéphane wrote:
> >Hi,
> This is actually OT for Vim, since grep is an external program; but you can
> use
> grep -r --exclude=PATTERN
> to skip any directory matching the pattern (at least with GNU grep).
Apparently this doesn't work for GNU grep. It only excludes
matches on file basenames, I am told.
Correct me if I am wrong.
> In Vim you would use (IIUC)
> :set grepprg=grep\ -r\ --exclude=*.svn
> :grep \<word\> ~/dir/subdir/*
--
Greg Matheson All teaching is teaching
under difficult circumstances.
--Dr Bean