Modes, movement and a first edit
The technique
In Normal mode, keys move or change text. Press i to enter Insert mode and type; Esc returns to Normal.
$ jumps to the end of the line and h moves one step left, onto the extra letter. x deletes it. You stay in Normal mode the whole time.
Keys in this lesson
- hjkl
- Left, down, up, right.
- i
- Insert before the cursor.
- Esc
- Back to Normal mode. Also cancels a command you have started.
- $
- End of the line.
- x
- Delete one character.
- ciw
- Change the word under the cursor.
- u
- Undo the last change.
- Ctrl-r
- Redo it.
More about this lesson
h moves left, j down, k up and l right. The cursor and mode label show where you are.
Match the desired result, then return to Normal mode. u undoes the last edit, Ctrl-r redoes it, and Reset restores the starting text.