Last Updated: October 04, 2020
·
13.03K
· artfeel

Fixing arrow keys in iTerm 2

Open iTerm2:
* Preferences… → Profile → Default → Keys
* Choose Left option (⌥) Key acts as: +Esc
* Double-click on ⌥← hotkey, for Action, choose send escape sequence and write b in the input field.
* Double-click on ⌥→ hotkey, for Action, choose send escape sequence and write f in the input field.

Bonus:
Beginning of Line: Ctrl + a
End of Line: Ctrl + e

Related protips:

Use ⌥ ← and ⌥→ to jump forwards / backwards words in iTerm 2, on OS X