On Oct 26, 11:40 pm, Steven Woody <[email protected]> wrote:
> Hi,
>
> When running vimgrep, I see on the screen the buffer is quickly
> refreshed with many many files.  I guess this slow down the vimgrep
> speed.  Can this behavior be disabled?
>
> Thanks.
>

vimgrep does not load each file it reads into the current window, it
just displays file names as it goes so that the user doesn't assume
Vim is hanging.

I don't know if this behavior is configurable or not, but I do know
that although each file is not displayed in the window, it IS read in
and all autocmds are processed. This is intentional; it allows you to
vimgrep through archive files, for example, with the appropriate
plugin. However, if all you are doing is searching through text files,
the autocmds slow it down considerably.

Try pre-pending :noautocmd to your :vimgrep command to speed things
up, unless you depend on plugins for reading the files you are
grepping.

This is discussed briefly at http://vim.wikia.com/wiki/Find_in_files_within_Vim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to