Scrolling with mouse in vim in tmux

I have mouse scrolling in vim and tmux and I am using iTerm 2 because it has mouse support. But when I run vim inside tmux, sometimes I have a problem that tmux catches or steals the scroll event from vim, I can just scroll in vim. Probably because in tmux I was already scrolling all the way down, but when I try to scroll back to vim it goes into tmux scroll mode and I see [0/0] at the top and I can't scroll up in vim.

How can I get mouse scrolling to work with vim inside tmux?

+3


source to share


1 answer


Turns out the problem for me was caused by a vim plugin called tagbar: https://github.com/majutsushi/tagbar



I uninstalled this plugin and I could just scroll with the mouse.

0


source







All Articles