Skip to content

Instantly share code, notes, and snippets.

@yifanz
Created September 10, 2021 18:06
Show Gist options
  • Save yifanz/f39f83766f71f88123a5236b3c9e57b5 to your computer and use it in GitHub Desktop.
Save yifanz/f39f83766f71f88123a5236b3c9e57b5 to your computer and use it in GitHub Desktop.
Search and replace
vim
:args `ls`
:argdo %s#SEARCH#REPLACE#gec |update
First character afer %s is used as separator
git ls-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment