Created
October 19, 2011 21:18
-
-
Save adambair/1299712 to your computer and use it in GitHub Desktop.
Global Search and Replace in Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # populate the arglist | |
| :args app/*/* | |
| # then use argdo <cmd> | |
| :argdo %s/:notice/:success/gec | |
| # the % is for the entire file | |
| # the g is for global line substitution | |
| # the e is to ignore errors | |
| # the c is to confirm each substitution |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment