starthello·worldcursorde·worldstops at the word enddwworldruns to the next worddw takes the space; de leaves it.
The most confusing pair in Vim, in one picture. de stops at the last letter of the word; dw runs on to where the next word starts — so it swallows the space and leaves the words jammed together.
Vim Delete: d + motion
beginner » Delete the stray character under the cursor.
goal
hello world
scratch.txt
1 helllo world
-- NORMAL -- 1,4
keys
your keystrokes appear here as you press them
NORMAL ~/learn/vim-motions · 1/9 · x real vim keys trail · always esc in-editor

Best on a keyboard

“Delete: d + motion” is a hands-on typing drill — it needs a physical keyboard. Open it on a laptop or desktop to play. You can still browse and read everything here on your phone.

Back to course →
NORMAL ~/memra/learn/vim-motions/delete-operator utf-8 LF