Skip to content
Vim Learn
Learn/

Delete Inside Word

37 / 51

Text Objects · Words

Delete Inside Word

Delete a word from any position inside it.

diw addresses the current word without including surrounding whitespace, leaving neighboring layout intact.

Use diw in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.

Keys in this lesson

diw
Delete the word under the cursor, leaving the spaces
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.

diw

Delete the characters inside the current word with diw.