Modes, movement and a first edit
The technique
In Normal mode, keys move the cursor or change text. Press i to start typing in Insert mode, and Esc to go back to Normal mode.
$ 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. It also cancels a command you've 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 the mode label show where you are.
Make your text match the result shown, then go back to Normal mode. u undoes the last edit, Ctrl-r redoes it, and Start over puts back the starting text.