Terminal + PowerShell 7 + Vim = Trouble on Win 10 #20349

Closed
opened 2026-01-31 07:11:04 +00:00 by claunia · 3 comments
Owner

Originally created by @alan-isaac on GitHub (Aug 8, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.19045.0

Other Software

Vim 9.0 in PowerShell 7

Steps to reproduce

Launch Windows Terminal from the Win 10 Start menu. My default terminal shell is PowerShell 7, which loads fine. (By default, I run as admin.) I experience no problems running PS commands here. However, inside this PS7 terminal shell enter vim C:\temp\temp.txt (a simple ASCII text file) and suddenly things go badly awry, even though the file seems to load normally into a Vim buffer.

Expected Behavior

Vim should behave normally, as it does within PowerShell 7 when not using Windows Terminal.

Actual Behavior

To give just one example, suppose the first thing I do after loading temp.txt into a Vim bugger (see: Steps to Reproduce) is to press v (to enter visual mode). The line the cursor is on disappears and seems to be deleted. As far as I can tell (?) however, something has happened to the screen drawing.

I do NOT have this problem when I launch PS 7 from the Start menu and then start Vim in exactly the same way. So adding Terminal into this mix produces the problem.

Originally created by @alan-isaac on GitHub (Aug 8, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.19045.0 ### Other Software Vim 9.0 in PowerShell 7 ### Steps to reproduce Launch Windows Terminal from the Win 10 Start menu. My default terminal shell is PowerShell 7, which loads fine. (By default, I run as admin.) I experience no problems running PS commands here. However, inside this PS7 terminal shell enter `vim C:\temp\temp.txt` (a simple ASCII text file) and suddenly things go badly awry, even though the file seems to load normally into a Vim buffer. ### Expected Behavior Vim should behave normally, as it does within PowerShell 7 when not using Windows Terminal. ### Actual Behavior To give just one example, suppose the first thing I do after loading temp.txt into a Vim bugger (see: Steps to Reproduce) is to press `v` (to enter visual mode). The line the cursor is on disappears and seems to be deleted. As far as I can tell (?) however, something has happened to the screen drawing. I do NOT have this problem when I launch PS 7 from the Start menu and then start Vim in exactly the same way. So adding Terminal into this mix produces the problem.
claunia added the Needs-TriageIssue-BugNeeds-Attention labels 2026-01-31 07:11:05 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Aug 9, 2023):

Oh oh oh now that I've slept on this, I bet this is #14512. Can you try Terminal Preview (v1.18), and set that as your Default Terminal, and try again/?

(xlinking https://superuser.com/questions/1800860/tricks-to-using-terminalpowershellvim?noredirect=1#comment2827168_1800860)

@zadjii-msft commented on GitHub (Aug 9, 2023): Oh oh oh now that I've slept on this, I bet this is #14512. Can you try [Terminal Preview](https://aka.ms/terminal-preview) (v1.18), and set that as your Default Terminal, and try again/? (xlinking https://superuser.com/questions/1800860/tricks-to-using-terminalpowershellvim?noredirect=1#comment2827168_1800860)
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Aug 13, 2023):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Aug 13, 2023): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@alan-isaac commented on GitHub (Aug 16, 2023):

Apologies, I've been away. The problem remains in Windows Terminal Preview Version: 1.18.1462.0 + PowerShell 7 + Vim 9.

@alan-isaac commented on GitHub (Aug 16, 2023): Apologies, I've been away. The problem remains in Windows Terminal Preview Version: 1.18.1462.0 + PowerShell 7 + Vim 9.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20349