After using split screen, vim cannot return to the beginning of the line (through the command gg) #18340

Closed
opened 2026-01-31 06:10:52 +00:00 by claunia · 4 comments
Owner

Originally created by @qjpoo on GitHub (Aug 30, 2022).

Windows Terminal version

1.14.2281.0

Windows build number

10.0.19044.0

Other Software

vim : version 7.4.629
os: CentOS Linux release 7.9.2009 (Core)

Steps to reproduce

1. open ssh connection, vim /etc/passwd
image

2. Use the custom shortcut alt + v to split the screen vertically
image

3. return ssh windows, use the gg command in the vim editor, but cannot return to the beginning of the line
image

Expected Behavior

After using split screen, vim can return to the beginning of the line (through the command gg)

Actual Behavior

The actual displayed content does not match the vim line number.

Originally created by @qjpoo on GitHub (Aug 30, 2022). ### Windows Terminal version 1.14.2281.0 ### Windows build number 10.0.19044.0 ### Other Software vim : version 7.4.629 os: CentOS Linux release 7.9.2009 (Core) ### Steps to reproduce **1. open ssh connection, vim /etc/passwd** ![image](https://user-images.githubusercontent.com/19181044/187373155-5664696d-7a79-4565-805d-ae2437f3034a.png) **2. Use the custom shortcut alt + v to split the screen vertically** ![image](https://user-images.githubusercontent.com/19181044/187373546-64bd6630-66df-4ae7-91fe-4ba75ac806d8.png) **3. return ssh windows, use the gg command in the vim editor, but cannot return to the beginning of the line** ![image](https://user-images.githubusercontent.com/19181044/187374029-3beeac12-2e52-4a3f-b9d0-311a4853dcf5.png) ### Expected Behavior After using split screen, vim can return to the beginning of the line (through the command gg) ### Actual Behavior The actual displayed content does not match the vim line number.
claunia added the Needs-TriageIssue-BugNeeds-Tag-FixNeeds-Attention labels 2026-01-31 06:10:52 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 30, 2022):

Curious - It's like vim never got the SIGWINCH to resize the window - you can see how the lines haven't been redrawn at all. Which ssh are you using/? ssh.exe that ships with Windows? ssh from a WSL distro? Or some other ssh? And which version of ssh?

CentOS has definitely given us plenty of issues in the past.

@zadjii-msft commented on GitHub (Aug 30, 2022): Curious - It's like vim never got the SIGWINCH to resize the window - you can see how the lines haven't been redrawn at all. Which `ssh` are you using/? `ssh.exe` that ships with Windows? `ssh` from a WSL distro? Or some other `ssh`? And which version of `ssh`? CentOS has definitely given us plenty of issues in the past.
Author
Owner

@qjpoo commented on GitHub (Aug 30, 2022):

Curious - It's like vim never got the SIGWINCH to resize the window - you can see how the lines haven't been redrawn at all. Which ssh are you using/? ssh.exe that ships with Windows? ssh from a WSL distro? Or some other ssh? And which version of ssh?

CentOS has definitely given us plenty of issues in the past.

yes, Win10 built-in ssh.exe

C:\Users\Administrator> ssh -V
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

image

@qjpoo commented on GitHub (Aug 30, 2022): > Curious - It's like vim never got the SIGWINCH to resize the window - you can see how the lines haven't been redrawn at all. Which `ssh` are you using/? `ssh.exe` that ships with Windows? `ssh` from a WSL distro? Or some other `ssh`? And which version of `ssh`? > > CentOS has definitely given us plenty of issues in the past. yes, Win10 built-in ssh.exe C:\Users\Administrator> ssh -V OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 ![image](https://user-images.githubusercontent.com/19181044/187490060-efe3bd98-377a-41e6-a003-34e31fd621f3.png)
Author
Owner

@qjpoo commented on GitHub (Aug 30, 2022):

I tried to use the ssh.exe that comes with git bash. It is possible to use the vim editor command gg to return to the beginning of the line
Thanks for your guide !

image

@qjpoo commented on GitHub (Aug 30, 2022): I tried to use the ssh.exe that comes with git bash. It is possible to use the vim editor command gg to return to the beginning of the line Thanks for your guide ! ![image](https://user-images.githubusercontent.com/19181044/187491114-e295df22-e7a4-4145-ac5a-5049bdf58214.png)
Author
Owner

@qjpoo commented on GitHub (Aug 31, 2022):

solved this problem

@qjpoo commented on GitHub (Aug 31, 2022): solved this problem
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18340