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?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communitySetting 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.