KLEIN Stéphane wrote:
Hi,

In vim, I would like do a :grep -r but don't match .svn directory.
Grep or vim have this feature ?

Thanks for you help
Stephane


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).

In Vim you would use (IIUC)

        :set grepprg=grep\ -r\ --exclude=*.svn
        :grep \<word\> ~/dir/subdir/*


Best regards,
Tony.

Reply via email to