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.
This is so that you can grep compressed, encrypted and other files. You have of course made sure that BufRead autocommands don't slow down loading a 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=3Dall' and continued to > load BufRead autocommands and .viminfo for each file. That is a bug. Vimgrep adds something to 'eventignore', causing "all" no longer to be recognized. I'll fix that. -- If your life is a hard drive, Christ can be your backup. /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
