Why does mouse wheel not work for scrolling in Vim?

PROBLEM DESCRIPTION


When using Vim on a server, the mouse wheel does not scroll through the scroll buffer. Instead, the input seems to be converted to the arrow keys.

The same issue occurs even if use of the mouse wheel is blocked in visual mode in the vimrc settings. Is there a way to use the mouse wheel for scrolling in Vim?



RESOLUTION


Xshell 7 added a mouse wheel related action option in Build 0109.

Try again after using the following command:

set ForceWheelEvents = 0

Xshell 7 (Build 0111)
 
Copyright (c) 2020 NetSarang Computer, Inc. All rights reserved.
Type `help' to learn how to use Xshell prompt.
[C:\~]$ set ForceWheelEvents = 0