Last active
January 9, 2019 19:16
-
-
Save gomes-work/ec2eddeaa4353b0383941d8e6e7fbe03 to your computer and use it in GitHub Desktop.
Vim tricks
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
# Macro Recording # | |
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 | |
# Copy Visual Block to OS Clipboard # | |
"*y | |
# We can also use object commands | |
"*yi[ | |
"*yaW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment