Go to previous word: the shortcut in 8 apps
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.
| App | Mac | Windows | Linux | Chromebook |
|---|---|---|---|---|
| BashBack one word | OptionB | AltB | AltB | — |
| 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. | OptionB | AltB | AltB | — |
| EmacsBack one word | OptionB | AltB | AltB | — |
| macOSMove the insertion point to the beginning of the previous word | Option← | — | — | — |
| NeovimPrevious word · Normal mode | B | B | B | — |
| VimJump back to the start of the word · Normal mode | B | B | B | — |
| Windows 11Move the cursor to the beginning of the previous word | — | Ctrl← | — | — |
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.