VSCodeVim / VSCodeVim/Vim

Switching between modes makes commands stop working

Open
#9,499 0 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
Although commands are working and everything looks normal right after initialization, as soon as I make the first switching between modes(insert or visual) custom commands involving the leader key(in my case, the space bar) stop working.

To Reproduce
Steps to reproduce the behavior:

  1. Initialize vscode
  2. Await the extensions to be loaded
  3. Switch modes
  4. Custom commands not working from now.

Expected behavior
Custom commands like e mapped to toggle file explorer should work normally.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.29.0
  • VSCode version: 1.97.2
  • OS: Ubuntu 24.04.02

Additional context
I have an almost equal copy of the Ubuntu config in a Windows 11, and there I don't find this behavior.

My escape key is mapped to caps lock and it's working. Don't see relation with problem but think it's worth to mention.

Config files in the attachments.

Great thanks for the attention, any help is welcome.

keyboard.json
settings.json

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 failure in VSCodeVim 1.29.0 on Ubuntu 24.04.02 with the attached keyboard.json and settings.json. Check the leader-key mapping before and after switching between insert and visual modes; done means the custom e command continues to work after mode changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.