Vim macro is amazing!
If you want to repeat a bunch of vim commands for running multiple times, record them in a macro and run wherever you want.
To record a macro you need:
-
type
q
followed by any char: [a-z] - type your vim commands
-
type
q
again to finish recording
Finally, to run the macro that you just created type:
@
followed by the same char you chose to store the macro.