5

vim escape & arrow keys are inserting strange character (the letter q in my case) but works perfectly if launched in a tmux session or with terminal.app

Someone having the same problem?

1 Answer 1

6

Setting the Report Terminal Type to ansi or linux in my profile solved my problem.

When the terminal type of your sessions is set to one of those "xterm" types, iTerm handles the arrow keys, the home key, and the end key in a special way.

2
  • this worked for me after i restarted tmux/iterm2 Mar 11, 2015 at 17:40
  • 1
    yeah, but doing that screws with 256 color modes (e.g. solarized). there is an issue in iTerm2 to address this.
    – eduncan911
    Feb 17, 2016 at 4:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .