microsoft / microsoft/terminal

ViM mousing only partially works, works different across different platforms

Open
#10,321 23 comments 5 reactions 1 assignee Claimed by @DHowett View on GitHub
Area-Input Area-TerminalControl Issue-Bug Priority-1 Product-Conpty Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Windows Terminal version (or Windows build number)

1.9.1445.0

### Other Software

Software | Version
---------------------|------------------
Windows Terminal | 1.9.1445.0
PowerShell | 7.1.1
ViM (Windows) | 8.2 patches 1-2920
ViM (Git) | 8.2 patches 1-2859
ViM (WSL) | 8.1 patches 1-875
ViM (Remote) | 8.1 patches 1-2269
OpenSSH | 8.5p1

This is the newest ViM from the vim for windows github

### Steps to reproduce

Install WT (Windows Terminal), ViM, Git, WSL for testing (see combinations tested below)
Create `vimrc-test` file with the contents:
set mouse=a

Run command with `vim -u vimrc-test textfile` where `textfile` is some file that is long enough to have room to scroll.

### Expected Behavior

Clicking, Selecting, Scrolling to work across all Windows Terminal combinations (except for `cmd.exe`, I don't expect that)

### Actual Behavior

Is scrolling supposed to work at this point? I've tested a number of options, and my findings are currently:

`#` | Console | Selection | Click | Scrolling | Note
---|------ |------- |----- | ---------|--------
1 | WT + WSL (Debian) | ✔ | ✔ | ✔ |
2 | WT + PowerShell + Windows ViM | ✔ | ✔ | ❌ |
3 | WT + PowerShell + Git ViM | ❌ | ❌ | ❌ |
4 | WT + PowerShell + Remote ViM | ❌ | ❌ | ❌ |
5 | ~WT + PowerShell + Windows ViM~ | ~✔~ | ~✔~ | ~❌~ | _this is a duplicate of the above_
6 | WT + cmd + Windows ViM | ✔ | ✔ | ❌ |
7 | WT + cmd + Git ViM | ❌ | ❌ | ❌ |
8 | pwsh + PowerShell + Git ViM | ✔ | ✔ | ✔ |
9 | pwsh + PowerShell + Remote Vim | ✔ | ✔ | ✔ |

By remote ViM I mean using ViM over an ssh connection to a linux machine.

Referencing #376

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.