How do I append more commands to an existing macro without re-recording it from scratch?
qQ
Recording a macro with an uppercase register letter appends to the existing macro in the corresponding lowercase register instead of overwriting it.
qQ
Recording a macro with an uppercase register letter appends to the existing macro in the corresponding lowercase register instead of overwriting it.
qQ...q
When you record a macro into register q with qq.
"+q{keys}q
You can record macros into any register, including the system clipboard (+).
qq /pattern<CR> {commands} q
By incorporating a search command inside a macro, you can make it jump to the next occurrence of a pattern before performing its edits.
0 or ^ at start of macro
A common macro pitfall is assuming the cursor starts at a specific column.