Out of the box, on a fresh iTerm2 installation when you press Option-Backspace ( ) it won't delete whole words but instead backspace delete one character at a time.

The solution is to

  1. Open iTerm2's settings by pressing ,
  2. Go to Profiles
  3. Select "Keys" tab
  4. Look for "Left option (⌥) key:"
  5. Change it from "Normal" to "Esc+"
  6. Close the preferences window

I keep forgetting this and struggled to find up-to-date instructions so hopefully by blogging about it I won't forget next time.

Comments

Matthew Hogg

Thank you!!

Adam Reineke

Also thank you!

Jinn

This is amazing. Thank you!!

Your email will never ever be published.

Previous:
How to SSG a Vite SPA April 26, 2025 Web Performance, React, JavaScript, Bun
Next:
A Python dict that can report which keys you did not use June 12, 2025 Python
Related by category:
html-getter - A powerfully simple HTML scraper in Bun April 17, 2026 macOS
xbar-my-prs Info about your GitHub PRs in the macOS menu bar January 29, 2026 macOS
Copy the current line in VS Code March 12, 2026 macOS
How to count the number of non-blank lines with Bash September 3, 2025 macOS
Related by keyword:
Local jed settings April 19, 2013 Linux, macOS