Skip to content

↑↓ moveEnter openEsc close

Delete character right: the shortcut in 5 apps

5 apps · Mac, Windows, Linux and Chromebook

On Mac it is usually Ctrl+D (3 of 4 apps); on Windows it is usually Ctrl+D (2 of 3 apps); on Linux it is usually Ctrl+D (2 of 3 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinuxChromebook
BashDelete the character under the cursor · Line has textCtrlDCtrlDCtrlD—
ChromeOSDelete the next letter (forward delete)———AltBackspace
EmacsDelete the next characterCtrlDCtrlDCtrlD—
macOSDelete the character to the right of the insertion pointCtrlDorFnDelete———
VimDelete the character under the cursor · Normal modeXXX—

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Ctrl+D in Bash, Emacs and macOS; X in Vim.
  • Windows: Ctrl+D in Bash and Emacs; X in Vim.
  • Linux: Ctrl+D in Bash and Emacs; X in Vim.
  • Chromebook: Alt+Backspace in ChromeOS.

Where and when it works

  • Bash (Line has text).
  • ChromeOS: Chromebooks have no Delete key: Alt+Backspace deletes the letter after the cursor, or a selected file in Files.
  • Vim (Normal mode).

Learn it by pressing it: Bash shortcuts practice, ChromeOS shortcuts practice, Emacs shortcuts practice, macOS shortcuts practice or Vim shortcuts practice.