VSCodeVim / VSCodeVim/Vim

Vim Surround not working in `vscode.dev` nor GitHub Codespaces (falls out of `operatorPendingModeKeyBindingsMap` prematurely)

Open
#8,131 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
No vim-surround functionality is working in a default install of this plugin in vscode.dev nor in Github Codespaces.

Other emulated plugins work fine (e.g. vim-commentary is working fine).

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to vscode.dev
  2. Install this plugin.
  3. Open an arbitrary text file
  4. Try any of ysiw", ds", cs"'

Expected behavior
Vim-surround functionality works.

Screenshots
If applicable, add screenshots to help explain your problem.
If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.

No remapping is involved.

Environment (please complete the following information):

image
image
image

Additional context
I have no user settings other than a git.autofetch.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ysiw", ds", and cs"' in a default install on vscode.dev or GitHub Codespaces, then trace why the flow falls out of operatorPendingModeKeyBindingsMap prematurely. Done means vim-surround works there without remappings, while the existing emulated-plugin behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.