On Wed, 26 Apr 2006 at 10:01pm, Yakov Lerner wrote: > 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
I had a suspicion of this, but when I checked the buffer-list these files didn't show up, so I presumed that Vim doesn't really load them as regular buffers to do the search, so I wonder how the BufRead autocommand gets fired. -- Hari __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
