Terminal weirdness after using vim 9.1 #21626

Open
opened 2026-01-31 07:50:05 +00:00 by claunia · 1 comment
Owner

Originally created by @anilruia on GitHub (May 3, 2024).

Windows Terminal version

1.20.10822.0

Windows build number

22631.3447

Other Software

vim 9.1 with cmd.exe

Steps to reproduce

Launch vim
Exit vim

Expected Behavior

Terminal behaves normally

Actual Behavior

After I exit vim, my cursor gets positioned 3 lines before the last line. Also, if I ever try to use cmd tab completion or backspace etc, my cursor moves up 3 lines above where I was typing, so I am now typing against some random text while my real command is 3 lines below. I have another machine with vim 9.0 installed and it does not repro there.

Originally created by @anilruia on GitHub (May 3, 2024). ### Windows Terminal version 1.20.10822.0 ### Windows build number 22631.3447 ### Other Software vim 9.1 with cmd.exe ### Steps to reproduce Launch vim Exit vim ### Expected Behavior Terminal behaves normally ### Actual Behavior After I exit vim, my cursor gets positioned 3 lines before the last line. Also, if I ever try to use cmd tab completion or backspace etc, my cursor moves up 3 lines above where I was typing, so I am now typing against some random text while my real command is 3 lines below. I have another machine with vim 9.0 installed and it does not repro there.
claunia added the Area-OutputIssue-BugProduct-Terminal labels 2026-01-31 07:50:05 +00:00
Author
Owner

@github-actions[bot] commented on GitHub (May 3, 2024):

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@github-actions[bot] commented on GitHub (May 3, 2024): Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! ### Open similar issues: - [Cursor position is wrong after exiting vim (#16254)](https://github.com/microsoft/terminal/issues/16254), similarity score: 0.83 ### Closed similar issues: - [Terminal + PowerShell 7 + Vim = Trouble on Win 10 (#15809)](https://github.com/microsoft/terminal/issues/15809), similarity score: 0.79 - [Bottom lines of terminal display blocked off after closing vim (#9110)](https://github.com/microsoft/terminal/issues/9110), similarity score: 0.78 - [Vim leaves text in the terminal (#10745)](https://github.com/microsoft/terminal/issues/10745), similarity score: 0.77 - [After quitting vim and resizing the wt, terminal still shows vim interface (#13184)](https://github.com/microsoft/terminal/issues/13184), similarity score: 0.76 > Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21626