As you may know, we have some keys bindings missing in iTerm, like jumping cursor through word or removing whole line, etc. I listed some useful bindings to make it working in our iTerm setup. To start, open your iTerm, go to Preferences > Keys and then click to + button to add new key bindings.
- Keys:
⌘+⟵(Delete) - Action:
Send Hex Code0x15
- Keys:
⌘+← - Action:
Send Hex Code0x01
- Keys:
⌘+→ - Action:
Send Hex Code0x05
- Keys:
⌥+⟵(Delete) - Action:
Send Hex Code0x1B 0x08
- Keys:
⌥+fn+⟵(Delete) - Action:
Send Escape Sequence- Esc +
d
- Esc +
- Keys:
⌥+← - Action:
Send Escape Sequence- Esc +
b
- Esc +
- Keys:
⌥+→ - Action:
Send Escape Sequence- Esc +
f
- Esc +