How do you record a macro that duplicates a line and modifies the copy?
qayyp:s/old/new/\nq
Record a macro that yanks and pastes the current line, then substitutes text on the new line.
qayyp:s/old/new/\nq
Record a macro that yanks and pastes the current line, then substitutes text on the new line.