I want to enable the mouse wheel for scrolling like ^e
and ^y
do. I don't want clicking in a buffer to move the cursor though, so :set mouse=a
does not help me.
Reason is that I have a bunch of gui windows open (web browser, chat etc) and click to focus vim, but if I click inside the buffer it moves the cursor to where I clicked. I also like to use the mouse wheel for scrolling because I find it faster than ^e
and ^y
, and easier to keep track if where I am that ^d
and ^u
or <pgdn>
and <pgup>
.
Is there a way to enable the mouse support for scrolling, but disable cursor position change when clicking?
Thanks!