Created
August 14, 2017 03:49
-
-
Save frankchen0130/0d271c4bce5de05ef480ee8f82e08151 to your computer and use it in GitHub Desktop.
vim recording add run
This file contains 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
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