I want to completely disable the mouse but mouse scrolling in normal mode is not disabled. I have disabled other mouse function but scrolling in normal mode is still on.

To disable the mouse I have used set mouse= and ttymouse=

  • Possibly related: vi.stackexchange.com/q/13566/18609
    – filbranden
    Commented Apr 24, 2020 at 4:11
  • It is not related. It doesn't solve this problem.
    – user26049
    Commented Apr 25, 2020 at 1:33
  • did you try the maps in the question by any chance? Do they by any chance do what you want?
    – filbranden
    Commented Apr 25, 2020 at 1:34

1 Answer 1


I ran into the same problem and after some fiddling around found that what is going on is that the terminal is sending up/down keys instead of mouse scrolls.

For my purposes making up/down do nothing in normal mode does what I want. Bear in mind this also stops you using the up/down keys to move the cursor

You might want to also do this in other modes but probably not command mode since up/down let you cycle through history in there.

"seems that either tmux or gnome-terminal converts scroll into up/down key presses
:nmap <Up> <Nop>
:nmap <Down> <Nop>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.