normal·mode
~ / operators / dot-repeatlesson 4/7

The dot command: repeat the last change

Make a change once, then move and press . to do it again.

3 drills

  1. Same edit, every line: Add a semicolon to the end of every line. Do the first one, then repeat it.
  2. Delete every debug line: Delete the debugging lines. The cursor is on the first one: delete it, then repeat on the others.
  3. Hop and repeat: ; then .: Put spaces around every operator. Find the first one, change it, then repeat with ; and ..

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