copying from Vim editor to windows notepad, changes too much of spaces and not alligned #10719

Closed
opened 2026-01-31 02:28:24 +00:00 by claunia · 6 comments
Owner

Originally created by @shettypriy on GitHub (Sep 23, 2020).

When I copy the contents from a WSL unbuntu terminal using vim to a windows notepad it add too many spaces for the text and all will be wrapped in a single line with scroll bar creating horizontally. There is no proper alignment of the text . Could you please help me on this

Originally created by @shettypriy on GitHub (Sep 23, 2020). When I copy the contents from a WSL unbuntu terminal using vim to a windows notepad it add too many spaces for the text and all will be wrapped in a single line with scroll bar creating horizontally. There is no proper alignment of the text . Could you please help me on this
claunia added the Resolution-Duplicate label 2026-01-31 02:28:24 +00:00
Author
Owner

@DHowett commented on GitHub (Sep 25, 2020):

Do you have an example? Copying text from vim works for me in WSL in Windows Terminal.

@DHowett commented on GitHub (Sep 25, 2020): Do you have an example? Copying text from vim works for me in WSL in Windows Terminal.
Author
Owner

@ghost commented on GitHub (Sep 29, 2020):

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.

@ghost commented on GitHub (Sep 29, 2020): 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

@shettypriy commented on GitHub (Sep 30, 2020):

vim notepad

In the first screenshot I am copying the contents from a file which is opened uisng vim in the terminal and when pasting the same contents to the windows notepad it adds to many spaces to the text and is not alligned correctly as shown in the screenhot

@shettypriy commented on GitHub (Sep 30, 2020): <img width="196" alt="vim" src="https://user-images.githubusercontent.com/42608605/94648079-604d3f00-030f-11eb-9419-9c64ab5a2d05.png"> <img width="950" alt="notepad" src="https://user-images.githubusercontent.com/42608605/94648084-62af9900-030f-11eb-890a-b25df06c82a0.png"> In the first screenshot I am copying the contents from a file which is opened uisng vim in the terminal and when pasting the same contents to the windows notepad it adds to many spaces to the text and is not alligned correctly as shown in the screenhot
Author
Owner

@skyline75489 commented on GitHub (Oct 10, 2020):

Looks like a classic CRLF vs LF issue. If the text you copied uses LF, it will not have proper line ending in notepad.exe which uses CRLF by default. The latest notepad.exe actually has a nice indicator at the bottom:

image

@skyline75489 commented on GitHub (Oct 10, 2020): Looks like a classic CRLF vs LF issue. If the text you copied uses LF, it will not have proper line ending in notepad.exe which uses CRLF by default. The latest notepad.exe actually has a nice indicator at the bottom: ![image](https://user-images.githubusercontent.com/4710575/95651340-5223cd80-0b1c-11eb-8975-68834d690461.png)
Author
Owner

@DHowett commented on GitHub (Oct 23, 2020):

This isn't a regression, but we could handle the end of line behavior vim needs better. /dup #3088

@DHowett commented on GitHub (Oct 23, 2020): This isn't a regression, but we could handle the end of line behavior vim needs better. /dup #3088
Author
Owner

@ghost commented on GitHub (Oct 23, 2020):

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 (Oct 23, 2020): 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#10719