How do I add more steps to an existing macro without re-recording it from scratch?
qQ...q
When you record a macro into register q with qq.
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.