Skip to content

Instantly share code, notes, and snippets.

@andersonaguiar
Last active August 29, 2015 14:17
Show Gist options
  • Save andersonaguiar/c79c3461bb4b68c4a2cb to your computer and use it in GitHub Desktop.
Save andersonaguiar/c79c3461bb4b68c4a2cb to your computer and use it in GitHub Desktop.
Set Option-arrow navigation in iTerm2
~/.inputrc content:
"\e[1;5C": forward-word
"\e[1;5D": backward-word
Config profile keys in preferences of iTerm2
Then I had to set up in iTerm2 preferences–under Profiles->Keys–the options for both key combinations:
Add a hotkey with the plus symbol at the bottom of the hotkey list
Set the keyboard shortcut by pressing Option-left or Option-right
Set the action to “Send Escape Sequence”
Set the Esc+ field to:
[1;5C (Option-Right)
[1;5D (Option-Left)
Copy from: http://brettterpstra.com/2011/08/12/option-arrow-navigation-in-iterm2/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment