normal·mode
~ / operators / countslesson 6/7

Counts: do it N times

A number before a command repeats it, and <C-a> / <C-x> do arithmetic.

4 drills

  1. Delete N words at once: Delete the filler words with a single operator and a count.
  2. Make N copies: Duplicate the line until the buffer matches the target: one yank, then one put with a count.
  3. Arithmetic with <C-a> and <C-x>: Change the number so the line matches the target. The cursor doesn't need to be on the number.
  4. Change N words: Replace the words that differ in the target, using one c with a count.

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