Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Someone having the same problem?

share|improve this question
up vote 4 down vote accepted

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.

share|improve this answer
this worked for me after i restarted tmux/iterm2 – Brendon-Van-Heyzen Mar 11 '15 at 17:40
yeah, but doing that screws with 256 color modes (e.g. solarized). there is an issue in iTerm2 to address this. – eduncan911 Feb 17 at 4:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.