Undo and Redo

Learn to undo mistakes with u and redo with Ctrl+r

Open companion guide

Goals

0/2
  • Undo changes with u
  • Redo changes with Ctrl+r
Keys 0 · par 20

Instructions

  1. 1.Delete some text using dd or dw
  2. 2.Press u to undo your deletion
  3. 3.Practice making changes and undoing them
Quick KeysNORMAL
h j k lMove cursor
w b eWord movement
i a oEnter insert
dDelete
yYank (copy)
pPaste
uUndo
vVisual mode
:Command mode
/Search

Community pulse

Weekly top score
Leaderboard warming up...
Daily challenge
Loading challenge...
Vim mode: normal

Practice buffer · reset restarts the lesson (not vim u)

Lesson Companion

Use Undo and Redo in real editing

This companion guide helps you complete Undo and Redo with fewer mistakes and better command fluency.

Quick Command Cheatsheet
  • undo
  • redo
When to Use This Motion/Operator

Use this lesson whenever you need to apply precise changes instead of entering long Insert-mode edits with fewer keystrokes.

  • Prefer this over arrow-key micro-movements before each edit.
  • Use this pattern whenever you're working inside Editing Basics tasks.
  • Reach for undo, redo when this pattern appears.
Common Mistakes
  • Staying in Insert mode after making a change instead of returning to Normal mode.
  • Chaining several keystrokes for an edit a single operator+motion combo would do.
FAQ

How long should this lesson take?

Target completion is 60 seconds, but correctness matters more than speed at first.

Should I move to the next lesson if my score is low?

Repeat once or twice to build muscle memory on these fundamentals before moving on — beginner lessons compound into everything later.