Training plan › Editing

Change and repeat

r, cw, cc, C, ~, J and the dot command.

c (change) is like d but leaves you in Insert: cw changes a word, cc the whole line, C to the end. Other quick changes: r replaces one character, ~ toggles case and J joins lines. And the gem: . repeats the last change. Learn to think in repeatable changes and you will fly.

7 steps · 6 min · 80 XP

  1. Replace one character: r
  2. Change a word: cw
  3. Change the line: cc
  4. Change to the end: C
  5. Toggle case: ~
  6. Join lines: J
  7. Repeat: .

Create a free account