VSCodeVim / VSCodeVim/Vim

Custom Hotkeys and Vim Motions Not Working in Debug Mode

Open
#9,379 4 comments 3 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
Custom hotkeys defined in the VSCodeVim extension do not work in debug mode. Even basic Vim motions are unresponsive when debugging.

To Reproduce
Steps to reproduce the behavior:

  1. Configure custom hotkeys in settings.json for VSCodeVim, e.g.:
    {
        "before": ["<leader>", "d", "c"],
        "commands": ["editor.debug.action.continue"]
    },
    {
        "before": ["<leader>", "d", "o"],
        "commands": ["workbench.action.debug.stepOver"]
    }
    
  2. Start debugging in VSCode.
  3. Attempt to use the custom hotkeys or basic Vim motions during the debug session.
  4. Observe that neither the hotkeys nor the Vim motions function.

Expected behavior
Custom hotkeys and basic Vim motions should work seamlessly in debug mode, as they do outside of it.

Screenshots

https://github.com/user-attachments/assets/b7a5bdaa-96db-44c5-85f6-d678da456f41

Environment (please complete the following information):
• Extension (VsCodeVim) version: v1.28.1
• VSCode version: 1.95.3
• OS: Darwin arm64 24.1.0 (MacOS 15.1.1)

Additional context
The issue makes it difficult to debug efficiently while relying on Vim keybindings. If remapping-related logs are required, please specify, and I can attach them.

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 the issue with the settings.json mappings, VSCodeVim v1.28.1, VSCode 1.95.3, and the reported macOS environment. Compare custom hotkeys and basic Vim motions inside and outside a debug session; done means both operate during debugging, with any needed regression coverage added.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.