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

Your email will never ever be published.

Previous:
How to SSG a Vite SPA April 26, 2025 Web Performance, React, JavaScript, Bun
Related by category:
fnm is much faster than nvm. December 28, 2023 macOS
Be careful with Date.toLocaleDateString() in JavaScript May 8, 2023 macOS
Trying out (and liking!) MeetingBar for macOS July 25, 2024 macOS
Search hidden directories with ripgrep, by default December 30, 2023 macOS
Related by keyword:
Local jed settings April 19, 2013 Linux, macOS