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

Open
opened 2026-01-31 07:10:58 +00:00 by claunia · 0 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:10:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20345