TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Replace in Multiple Files - the Vim Way

5 pointsby CeRRuTiToover 12 years ago

1 comment

johncoltraneover 12 years ago
&#62; The limitation of argdo is that it won’t search the supplied directory recursively<p><pre><code> ** </code></pre> works more or less like * but for directories:<p><pre><code> :args **/*.rb :argdo %s/_params/params/gc </code></pre> will ask for confirmation before doing the substitution on <i>every</i> *.rb file contained in the current directory and its children.