On 4/26/06, Eric Arnold <[EMAIL PROTECTED]> wrote:
> I'm using win32 gvim70f. If I use the externan Cygwin grep
>
> grep -i -r vimgrep .
>
> it returns the results in under a second.
>
> :vimgrep vimgrep **
>
> takes about 20 seconds.
1. I did
:20verb vimgrep lakslaskjda $VIMRUNTIME/**
and found, to my surprise, that vim sources .viminfo and
executes 'au BufRead' for *every* searched file.
This cannot but slow down.It's hundeds lines of unnecessary scripts
per every searched file.
2. I tried to see what's the overhead of this unnecessary
'au BufRead' and tried ':set eventignore=all'. To my 2nd surprise,
vimgrep ignored ':set eventignore=all' and continued to
load BufRead autocommands and .viminfo for each file.
Yakov