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

后端 未结 14 1864
难免孤独
难免孤独 2020-12-02 03:09

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

14条回答
  •  悲&欢浪女
    2020-12-02 04:02

    Follow the tutorial you listed above for setting up your key preferences in iterm2.

    1. Create a new shorcut key
    2. Choose "Send escape sequence" as the action
    3. Then, to set cmd-left, in the text below that:
      • Enter [H for line start
        OR
      • Enter [F for line end

提交回复
热议问题