You have completed, correctly, all you can in vim , and the problem is with your terminal emulator.
The mouse wheel that scrolls the scroll buffer of the terminal emulator is a function of the terminal emulator that consumes mouse events. You want to send these events to an application ( vim ) connected to the terminal.
Most terminal emulators have the ability to enable the forwarding of mouse events when they are in “application key mode” or “Alternate screen”. Most of them also support the use of a modifier key (for example, holding ALT), which will go through the mouse events as you wish.
source share