I'm using macvim inside tmux inside iTerm2. Basically I just want to be able to scroll the buffer using the mousewheel. I've set
set -g moude-mouse on
set mouse=a set ttymouse=xterm2
.vimrc. Additionally I enabled 'xterm mouse reporting' in iTerm2.
Whenever I use the mouse wheel, vim will switch to insert mode and insert seemingly random characters. I'm guessing vim can't correctly interpret the mouse escape-codes.
The problem also appears outside of tmux and in the default Terminal.app which leads me to believe that it's a vim issue.
I've expiremented with all possible values of
ttymouse, none had the desired effect.