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
- Open iTerm2's settings by pressing ⌘ ,
- Go to Profiles
- Select "Keys" tab
- Look for "Left option (⌥) key:"
- Change it from "Normal" to "Esc+"
- 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