Pasting into vim appears to send escape character. #18083

Closed
opened 2026-01-31 06:03:10 +00:00 by claunia · 3 comments
Owner

Originally created by @jeffpkamp on GitHub (Aug 1, 2022).

Windows Terminal version

1.14.1962.0

Windows build number

10.0.19043.1826

Other Software

Vim version 8.0 (2016 Sep 12, compiled Jun 19 2022 10:00:27)

When I copy and paste there are two unusual behaviors. When I paste into vim while it is in edit mode, It exits edit mode as if the ESC key has been pressed before the insert begins.

Steps to reproduce

open vim

press a to go into append mode.

copy and paste
echo hello world

Expected Behavior

I expected it to paste
echo hello world

Actual Behavior

It pasted
O hello world

Originally created by @jeffpkamp on GitHub (Aug 1, 2022). ### Windows Terminal version 1.14.1962.0 ### Windows build number 10.0.19043.1826 ### Other Software Vim version 8.0 (2016 Sep 12, compiled Jun 19 2022 10:00:27) When I copy and paste there are two unusual behaviors. When I paste into vim while it is in edit mode, It exits edit mode as if the ESC key has been pressed before the insert begins. ### Steps to reproduce open vim press a to go into append mode. copy and paste `echo hello world` ### Expected Behavior I expected it to paste `echo hello world` ### Actual Behavior It pasted `O hello world`
Author
Owner

@DHowett commented on GitHub (Aug 2, 2022):

Thanks for the report!
Are you using Linux vim within WSL? Over SSH? Are you using Windows vim?

@DHowett commented on GitHub (Aug 2, 2022): Thanks for the report! Are you using Linux vim within WSL? Over SSH? Are you using Windows vim?
Author
Owner

@jeffpkamp commented on GitHub (Aug 2, 2022):

this is really odd. It's been doing this behavior for about a week now through multiple computer resets. however, when I went to test it out to make sure it wasn't limited to just over my ssh connection it, the behavior has completely disappeared. I guess we can close this issue since I can no long reproduce it.

@jeffpkamp commented on GitHub (Aug 2, 2022): this is really odd. It's been doing this behavior for about a week now through multiple computer resets. however, when I went to test it out to make sure it wasn't limited to just over my ssh connection it, the behavior has completely disappeared. I guess we can close this issue since I can no long reproduce it.
Author
Owner

@zadjii-msft commented on GitHub (Aug 3, 2022):

Welp, let us know if it comes back!

@zadjii-msft commented on GitHub (Aug 3, 2022): Welp, let us know if it comes back!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18083