Delete word right: the shortcut in 3 apps
On Mac it is usually Option+D (2 of 3 apps); on Windows it is usually Alt+D (2 of 3 apps); on Linux it is usually Alt+D (2 of 3 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| BashCut the word after the cursor | OptionD | AltD | AltD |
| EmacsDelete (kill) the next word | OptionD | AltD | AltD |
| VimDelete to the start of the next word · Normal mode | D,W | D,W | D,W |
How the apps compare
- Mac: Option+D in Bash and Emacs; D W in Vim.
- Windows: Alt+D in Bash and Emacs; D W in Vim.
- Linux: Alt+D in Bash and Emacs; D W in Vim.
Where and when it works
- Vim (Normal mode).
Learn it by pressing it: Bash shortcuts practice, Emacs shortcuts practice or Vim shortcuts practice.