Skip to content

Ctrl Key Not Working in Vim over SSH with Specific Terminal Software #2324

Open
@waterexit

Description

@waterexit

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Introduction

I am using terminals like Wezterm and Xterm on Ubuntu to connect to Windows via SSH.
The default shell in this setup is WSL.
However, upon starting Vim, none of the operations involving the Ctrl key, such as Ctrl+W and Ctrl+R, work.
The keys Ctrl+C and Ctrl+Z function perfectly in the Bash shell, so this issue appears to occur only when Vim is launched.

Interestingly, this issue doesn't occur when using gnome-terminal.

Additionally, when using the Using terminals like wezterm and xterm to connect to an Ubuntu system via SSH, the problem does not occur.
Honestly, I'm not sure if this is an issue with Win32-OpenSSH that needs fixing, but I'm interested to know why this happens.

Expected behavior

Control key should work in Vim while using Wezterm or Xterm.

Actual behavior

Control key does not work in Vim while using Wezterm or Xterm.

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.19041.5369
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.5369
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Version

OpenSSH_for_Windows_9.8p1 Win32-OpenSSH-GitHub, LibreSSL 3.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions