Vim leaves text in the terminal #14633

Closed
opened 2026-01-31 04:15:32 +00:00 by claunia · 2 comments
Owner

Originally created by @vivekananthrp on GitHub (Jul 21, 2021).

Windows Terminal version (or Windows build number)

Windows Terminal 1.8.1521.0

Other Software

Windows 10 (Version 10.0.19042 Build 19042) with WSL2 Ubuntu 20.04.
Vim (8.1.2269)

Steps to reproduce

When I open text files using Vim (8.1.2269) inside WSL2 Ubuntu 20.04, it leaves behind chunks of text from the text file in the terminal.

Steps to reproduce the issue:

  1. Open windows terminal and open a tab with Ubuntu 20.04
  2. Open a text file with enough lines for scrolling
  3. Use keys pg-up / pg-down / g (to reach top) / G (to reach bottom) / scroll through the file using trackpad
  4. Close Vim (using :q)
  5. Scroll up the terminal
  6. Chunks of text from the file appears in the terminal

The above issue doesn't happen if I just use the up-arrow or the down-arrow for navigating through the file inside Vim.

Attaching a screen recording of the above-described issue.

https://user-images.githubusercontent.com/11735154/126499082-819fa070-10b5-49be-b76e-517df478a73d.mp4

Expected Behavior

Text from Vim should not be seen in the terminal.

Actual Behavior

Text from Vim appears in the terminal, when you scroll-up after closing Vim.

Originally created by @vivekananthrp on GitHub (Jul 21, 2021). ### Windows Terminal version (or Windows build number) Windows Terminal 1.8.1521.0 ### Other Software Windows 10 (Version 10.0.19042 Build 19042) with WSL2 Ubuntu 20.04. Vim (8.1.2269) ### Steps to reproduce When I open text files using Vim (8.1.2269) inside WSL2 Ubuntu 20.04, it leaves behind chunks of text from the text file in the terminal. Steps to reproduce the issue: 1. Open windows terminal and open a tab with Ubuntu 20.04 2. Open a text file with enough lines for scrolling 3. Use keys pg-up / pg-down / g (to reach top) / G (to reach bottom) / scroll through the file using trackpad 4. Close Vim (using :q) 5. Scroll up the terminal 6. Chunks of text from the file appears in the terminal The above issue doesn't happen if I just use the up-arrow or the down-arrow for navigating through the file inside Vim. Attaching a screen recording of the above-described issue. https://user-images.githubusercontent.com/11735154/126499082-819fa070-10b5-49be-b76e-517df478a73d.mp4 ### Expected Behavior Text from Vim should not be seen in the terminal. ### Actual Behavior Text from Vim appears in the terminal, when you scroll-up after closing Vim.
claunia added the Resolution-Duplicate label 2026-01-31 04:15:32 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jul 21, 2021):

Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #381 for more discussion.

/dup #381

@zadjii-msft commented on GitHub (Jul 21, 2021): Thanks for the report! This is actually already being tracked by another issue on our repo - please refer to #381 for more discussion. /dup #381
Author
Owner

@ghost commented on GitHub (Jul 21, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jul 21, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14633