Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save petergi/56d42b0c7163ec2c0b9e5cdc03eac253 to your computer and use it in GitHub Desktop.
Save petergi/56d42b0c7163ec2c0b9e5cdc03eac253 to your computer and use it in GitHub Desktop.
Replaces all occurrences of "PETER" with "pete".
:g/PETER/s//pete/g
"equivalent to:
:%s/PETER/pete/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment