Skip to content

WSLv1 is painfully slow when pasting giant text into vim #13833

@vadimkantorov

Description

@vadimkantorov

Windows Version

10.0.26200.7171

WSL Version

2.6.1.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

Linux version 4.4.0-26100-Microsoft (Microsoft@Microsoft.com) (gcc version 5.4.0 (GCC) ) #5074-Microsoft Fri Jan 01 08:00:00 PST 2016

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

Paste giant text (1 megabytes, but only 32 lines) with very few lines (typical for minified JS) from clipboard into vim in text mode

It takes ages, and becomes one-by-line paste from some point. Also impossible to stop the operation: Ctrl+C or Ctrl+Z do not work

I don't know if vim has the same problem on bare metal Ubuntu, or if this a Microsoft Terminal problem :( Please feel free to transfer into the Terminal repo if you think it's a Terminal's issue.

Expected Behavior

Paste happens fast

Actual Behavior

Paste slows down to copying several 100 char/sec and can take ages

Diagnostic Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions