iterm – Mimic Terminall.app habits in iTerm2 for option-arrow keys (left and proper)


It’s a must to configure iTerm2 to ship Esc-B and Esc-F to get the again/ahead performance you are in search of.

Go into Iterm2 Profiles and edit the profile you are keen on. Then, underneath the important thing mapping part, select the “Choice Proper Arrow”

enter image description here

Once you double click on on it, you will want to pick the choice “Ship Escape Codes”

enter image description here

  • For the left arrow use “b”
  • For the appropriate arrow use “f”

Match with Terminal

This is just a little hack you are able to do to match what you see from Terminal and apply it to iTerm2. Merely go into the important thing mapping preferences in Terminal (proven beneath) and choose the merchandise you need to copy over.

It provides you with the code as 33b; the 33 is the Esc and b is, nicely, b. In iTerm2, it is asking for the code after Esc, so on this specific case, it simply wants the b.

enter image description here

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles