normal·mode
~ / macros / append-to-a-macrolesson 4/6

Add to a macro: qA

Record into the uppercase register to append keys to an existing macro.

2 drills

  1. Forgot the j: Register a already did its job on line 1, but it doesn't move to the next line. Append a j with qAjq, then run it on the remaining lines with a count.
  2. Forgot a step: Register a does only half of the job: line 1 shows what it did. Append the missing step with qA, finishing line 1 and moving down with j, then replay the whole macro on the remaining lines.

The drill editor loads in your browser.

outside the editor the page is in normal mode: ? keymaps · / find · : commandsfound this useful? ☕ support it ·credits · source · not affiliated with Vim or Neovim