Skip to content

↑↓ moveEnter openEsc close

Go to previous word: the shortcut in 8 apps

8 apps · Mac, Windows, Linux and Chromebook

On Mac it is usually Option+B (3 of 6 apps); on Windows it is usually Alt+B (3 of 6 apps); on Linux it is usually Alt+B (3 of 5 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinuxChromebook
BashBack one wordOptionBAltBAltB—
ChromeOSMove to the start of the previous word———Ctrl←
Claude CodeBack one word · | On a Mac, set Option to act as Meta in your terminal.OptionBAltBAltB—
EmacsBack one wordOptionBAltBAltB—
macOSMove the insertion point to the beginning of the previous wordOption←———
NeovimPrevious word · Normal modeBBB—
VimJump back to the start of the word · Normal modeBBB—
Windows 11Move the cursor to the beginning of the previous word—Ctrl←——

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: Option+B in Bash, Claude Code and Emacs; B in Neovim and Vim; Option+← in macOS.
  • Windows: Alt+B in Bash, Claude Code and Emacs; B in Neovim and Vim; Ctrl+← in Windows 11.
  • Linux: Alt+B in Bash, Claude Code and Emacs; B in Neovim and Vim.
  • Chromebook: Ctrl+← in ChromeOS.

Where and when it works

  • Claude Code (| On a Mac, set Option to act as Meta in your terminal.).
  • Neovim (Normal mode).
  • Vim (Normal mode).

Learn it by pressing it: Bash shortcuts practice, ChromeOS shortcuts practice, Claude Code shortcuts practice, Emacs shortcuts practice, macOS shortcuts practice, Neovim shortcuts practice, Vim shortcuts practice or Windows 11 shortcuts practice.