How to get Cmd-left/right working with iTerm2 and Vim (without requiring .vimrc changes)?

前端 未结 4 1828
清酒与你
清酒与你 2020-12-13 15:32

I want to be able to use Option-left and Option-right to skip words (and Cmd-left/right to go to beginning and end of lines) within Vim as it does at my shell prompt. My It

4条回答
  •  别那么骄傲
    2020-12-13 15:56

    FWIW, dolan's answer didn't work for me on iTerm 2 1.0.0.20120203 on Mac OS X 10.7.3. His solution only inserted ~ and 5D/5C into my terminal when I pressed the shortcut keys.

    Instead, I used the following solutions:

    • Cmd-left/right: iTerm 2: How to set keyboard shortcuts to jump to beginning/end of line?

    • Option-left/right as well as option-delete: http://hackaddict.blogspot.co.at/2007/07/skip-to-next-or-previous-word-in-iterm.html

    YMMV, not sure why one set of solutions would work and not the other

提交回复
热议问题