On 28/10/08 02:44, Tony Mechelynck wrote:
> On 28/10/08 02:30, Peng Yu wrote:
>>> I recommend using vimgrep, which uses Vim regular expressions:
>>>
>>>           :vimgrep /some string with spaces in it/g *.tex
>> Is there a vim command to replace strings for multiple files?
>>
>> Thanks,
>> Peng
>
>       :args *.tex
>       :argdo s/\<this\>/that/ge

oops!
        :argdo s/\<this\>/that/ge | update
or
        :set awa
        :argdo s/\<this\>/that/ge

>
> See
>       :help :args
>       :help :argdo
>
>
> Best regards,
> Tony.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to