Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankchen0130/0d271c4bce5de05ef480ee8f82e08151 to your computer and use it in GitHub Desktop.
Save frankchen0130/0d271c4bce5de05ef480ee8f82e08151 to your computer and use it in GitHub Desktop.
vim recording add run
vim *.cpp
qx # start recording to register x
:%s/OldString/NewString/g
:wnext
q # stop recording
@x # playback to see if it works correctly
999@x # repeat 999 times to complete the job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment