Skip to content

Instantly share code, notes, and snippets.

@rm--
Created October 4, 2017 19:55
Show Gist options
  • Select an option

  • Save rm--/bd98ffb138c33527c1bab6e68ed5c331 to your computer and use it in GitHub Desktop.

Select an option

Save rm--/bd98ffb138c33527c1bab6e68ed5c331 to your computer and use it in GitHub Desktop.
iterm2 jump back and forward
https://coderwall.com/p/h6yfda/use-and-to-jump-forwards-backwards-words-in-iterm-2-on-os-x
Here's how you can configure iTerm 2 on OSX to allow you to use ⌥ ← and ⌥→ to do just that.
First you need to set your left ⌥ key to act as an escape character.
Second you need to either locate the current shortcut for ⌥ ← or create a new one, in the Profile Shortcut Keys, with the following settings:
Keyboard Shortcut: ⌥←
Action: Send Escape Sequence
Esc+: b
Third, repeat for the ⌥→ keyboard shortcut with the following settings:
Keyboard Shortcut: ⌥→
Action: Send Escape Sequence
Esc+: f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment