Skip to content
Vim Learn
Learn/

Making Small Edits

07 / 51

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
All 91 keys →

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.

x

Delete the extra character with x.