On 2/25/07, Pavel Shevaev <[EMAIL PROTECTED]> wrote:
On 2/25/07, Tim Chase <[EMAIL PROTECTED]> wrote:
> > Grepping for something seems to be trivial with :vimgrep and :grep but
> > there's nothing simple like this for 'search&replace' and i wonder
> > why... Is it done intentionally or i'm just missing something?
>
> Just missing the power of the argdo/windo/bufdo commands:

Thank you very much, i'm surely going to have a deep look at these
commands. BTW, is it possible(i don't have vim installed on this box)
to find something with :vimgrep and then use :argdo to replace? I'm
asking about this because IMHO opening ~500 files with "vim *.txt"
just to replace something in several files looks like an overkill, no?

When vim is given 500 file arguments, it opens only
the first one. Regarding the other 499 files,  it just
remembers the names, for the beginning, so you see the first tfile very quicky.
Only when you explicitly visit/open some of the other files, vim
will actually read its contents. Just try it out. It works fast.

Yakov

Reply via email to