Section: Core operators

Delete with a motion

vim
vim
dw  d$  dd
Explanation

`d` becomes much more powerful when combined with motions.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Core operators
Change with a motion
Delete target text and enter insert mode.
OpenIn sheetvimsame section
Yank with a motion
Copy text into a register.
OpenIn sheetvimsame section
Repeat the last change
Run your last edit again.
OpenIn sheetvimsame section
Operate on a word
Change, delete, or yank the current word cleanly.
OpenIn sheetvim1 tag match
Prefix commands with counts
Repeat a motion or edit multiple times.
OpenIn sheetvim1 tag match
Operate inside quotes
Target a quoted string without touching delimiters.
OpenIn sheetvim1 tag match