⌘
command⌥
option/alt←
left arrow→
right arrow
- Open iTerm
- Open Preferences with
⌘ ,
- Click on the Keys tab
- Click on the + button at the bottom of the window below the table to add a new key binding
- Click on the 'Click to Set' box to record the keys you want to bind
- Add the following:
Keyboard Shortcut: ⌘ delete
Action: Send Hex Code
Argument: 0x15
Keyboard Shortcut: ⌥ delete
Action: Send Hex Code
Argument: 0x17
Keyboard Shortcut: ⌥ ←
Action: Send Escape Sequence
Argument: b
Keyboard Shortcut: ⌥ →
Action: Send Escape Sequence
Argument: f
Keyboard Shortcut: ⌘ ←
Action: Send Hex Code
Argument: 0x01
Keyboard Shortcut: ⌘ →
Action: Send Hex Code
Argument: 0x05
This reaches (I think?) the same result and is a little faster to setup
Preferences -> Profiles -> Keys -> Load Preset... -> Natural Text Editing
