normal·mode
~ / visual / repeat-visuallesson 3/6

Repeat a Visual edit with .

. replays the last Visual edit on the same amount of text at the cursor.

3 drills

  1. Indent, then . again: Indent the three lines under the cursor by two levels. Select them with V, shift once with >, then repeat with ..
  2. Push a column right: Push the aligned column 4 spaces further right on the lines that change in the target. Select it as a block, shift it with >, and repeat with ..
  3. Same block insert, somewhere else: Add the prefix from the target to both groups of lines. Do the first group with a block insert (<C-v>, I), then move to the second group and press ..

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