Skip to content
Vim
Learn/

Making Small Edits

07 / 51

Basic Vim

Making Small Edits

Delete, substitute, or replace one character efficiently.

Use x to remove one character, r followed by a character to replace exactly one character while staying in Normal mode, and s to replace one character with one or more characters before returning with Esc.

Use x, s, and r in the editor beside this lesson. Practice is where you learn it, with the answer a click away; the Test is graded, unaided, and the only thing that marks this lesson complete.

Keys in this lesson

x
Delete the character under the cursor
s
Replace one character and enter Insert mode
r
Replace exactly one character without leaving Normal mode
All 91 keys →

Practice to learn it. Test to prove it.

Practice keeps the answer a click away — endlessly in Free, or as a 15-goal run against par and your own best time in Timed. The Test gives you 8 goals with no hints and a keystroke budget on each; passing it is what marks this lesson complete.

x

Delete the doubled character under the cursor with x.