Skip to content

Instantly share code, notes, and snippets.

@adambair
Created October 19, 2011 21:18
Show Gist options
  • Select an option

  • Save adambair/1299712 to your computer and use it in GitHub Desktop.

Select an option

Save adambair/1299712 to your computer and use it in GitHub Desktop.
Global Search and Replace in Vim
# 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