Basic Vim
Making Small Edits
Delete, substitute, or replace one character efficiently.
Use x for removal, s when one character becomes several, and r when exactly one character should replace another without staying in Insert mode.
Use x, s, and r in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.
Keys in this lesson
- x
- Delete the character under the cursor
- s
- Substitute the character under the cursor, then keep typing
- r
- Replace one character without leaving Normal mode
Practice against the clock.
The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.