On 4/27/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> Eric Arnold wrote:
>
> > That will probably do for now.  Thanks.
> >
> > However, having a flag would be a good thing, since it would allow
> > future modifications to vimgrep to be encapsulated in the flag.
> > Meaning, in the future,   :vimgrep  /pattern/fast  would not
> > necessarily be synonymous with   :set eventignore=all
>
> Before even thinking of disabling autocommands, we first need proof that
> this actually changes the search time more than a few percent.
>
> Above that, if BufRead autocommands take so much time there is probably
> something wrong with them.  You should find out why this happens.


Are you saying that it isn't slow for you?

It seems that the bufread autocommands are resourcing the  
vim70f/scripts.vim  over and over.

I tried running with -u NONE -U NONE --plugin, and the speed wasn't
noticeably different,  so the problem isn't my vimrc, etc.
The only autocomands shown by "au" were:

--- Auto-Commands ---
buffer_list  BufAdd
    *         call <SID>BMAdd()
buffer_list  BufDelete
    *         call <SID>BMRemove()
buffer_list  BufFilePost
    *         call <SID>BMAdd()
buffer_list  BufFilePre
    *         call <SID>BMRemove()
MenuPopup
    *         call <SID>SpellPopup()



> Vim already disables FileType autocommands to avoid ftplugins and syntax
> scripts, these are not needed for grepping.  But this causes trouble
> for buffers that have a match, especially the first one.  Vim takes care
> of that for Filetype, but if you disable all autocommands you may
> experience the side effect of that.
>
> --
> TIM: But follow only if you are men of valour.  For the entrance to this cave
>      is guarded by a monster, a creature so foul and cruel that no man yet has
>      fought with it and lived.  Bones of full fifty men lie strewn about its
>      lair ...
>                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
>
>  /// 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    ///
>

Reply via email to