Mouse Scrolling in VI editor does not work #10410

Closed
opened 2026-01-31 02:20:50 +00:00 by claunia · 1 comment
Owner

Originally created by @johnhauhnar on GitHub (Aug 31, 2020).

Using Windows Terminal 1.2, Mouse Scrolling Does not work in VI editor.
However, Mouse scrolling works with default WSL-Ubuntu Client(C:\Windows\System32\wsl.exe)
Mouse scrolling works with other termal client such as Putty or Moba-Xterm as well.

Steps to reproduce below:

  1. Enable WSL feature and install Ubuntu from Windows store.
    C:>wsl --list
    Windows Subsystem for Linux Distributions:
    Ubuntu-20.04 (Default)
    C:>

  2. Open Ubuntu terminal using the default WSL Client i.e "C:\Windows\System32\wsl.exe"
    Enable Mouse scrolling for VI editor by adding the following setting in .vimrc.
    jo@MyPC:$ cat .vimrc | egrep 'mouse|Wheel'
    set mouse=a
    map <ScrollWheelUp> <C-Y>"
    map <ScrollWheelDown> <C-E>
    jo@MyPC:
    $

  3. Open some dummy text file large enough to test the mouse scrolling.
    jo@MyPC:~$ vi tmp/test
    Scroll the Mouse Wheel Up and Down and see the scrolling works as expected.

  4. Open WSL-Ubuntu using Windows Terminal.
    Open the same file using VI editor and try using Mouse Scrolling feature.
    This does not work as expected. The scrolling just does not work.

Originally created by @johnhauhnar on GitHub (Aug 31, 2020). Using Windows Terminal 1.2, Mouse Scrolling Does not work in VI editor. However, Mouse scrolling works with default WSL-Ubuntu Client(C:\Windows\System32\wsl.exe) Mouse scrolling works with other termal client such as Putty or Moba-Xterm as well. Steps to reproduce below: 1) Enable WSL feature and install Ubuntu from Windows store. C:\>wsl --list Windows Subsystem for Linux Distributions: Ubuntu-20.04 (Default) C:\> 2) Open Ubuntu terminal using the default WSL Client i.e "C:\Windows\System32\wsl.exe" Enable Mouse scrolling for VI editor by adding the following setting in .vimrc. jo@MyPC:~$ cat .vimrc | egrep 'mouse|Wheel' set mouse=a map \<ScrollWheelUp> \<C-Y>" map \<ScrollWheelDown> \<C-E> jo@MyPC:~$ 3) Open some dummy text file large enough to test the mouse scrolling. jo@MyPC:~$ vi tmp/test Scroll the Mouse Wheel Up and Down and see the scrolling works as expected. 4) Open WSL-Ubuntu using Windows Terminal. Open the same file using VI editor and try using Mouse Scrolling feature. This does not work as expected. The scrolling just does not work.
claunia added the Needs-TriageNeeds-Tag-Fix labels 2026-01-31 02:20:50 +00:00
Author
Owner

@johnhauhnar commented on GitHub (Aug 31, 2020):

After Windows Restart, this seems to be working...

@johnhauhnar commented on GitHub (Aug 31, 2020): After Windows Restart, this seems to be working...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10410