Live data from Hacker News

Replace in Multiple Files - the Vim Way

vimninjas.com

1–2 of 2 posts

Re: Replace in Multiple Files - the Vim Way

#2
> The limitation of argdo is that it won’t search the supplied directory recursively

    **
works more or less like * but for directories:

    :args **/*.rb
    :argdo %s/_params/params/gc
will ask for confirmation before doing the substitution on every *.rb file contained in the current directory and its children.