iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line?

chris picture chris · Jun 1, 2011 · Viewed 129.8k times · Source

I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow?

In order to get Alt+left/right arrow working correctly for word jumping follow this article.

Answer

Matthias picture Matthias · May 7, 2012

Add in iTerm2 the following Profile Shortcut Keys

FOR  ACTION         SEND
⌘←  "SEND HEX CODE"      0x01 
⌘→  "SEND HEX CODE"      0x05
⌥←  "SEND ESC SEQ"  b
⌥→  "SEND ESC SEQ"  f

Here is a visual for those who need it

iTerm add key visual