Description
After using the VS Code debugger, VSCodeVim stops resolving custom leader mappings until the window is reloaded.
Important detail: Vim itself is still active and still receives keys.
- Pressing
<space> is still recognized as leader
- The Vim log shows both keys being handled
- Built-in Vim motions like
w, b, and text objects such as ci( still work
- Native VS Code shortcuts like
Ctrl+Shift+P still work
- Only custom leader mappings stop working
Developer: Reload Window restores the mappings immediately
Environment
- VS Code version: 1.117.0
- VSCodeVim version: 1.32.4
- OS: Windows
Minimal configuration
{
"vim.leader": "<Space>",
"vim.useCtrlKeys": true,
"vim.normalModeKeyBindings": [
{
"before": ["leader", "f"],
"commands": ["workbench.action.quickOpen"]
}
],
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": ["leader", "<Space>"],
"commands": ["workbench.action.showCommands"]
}
]
}
Steps to reproduce
- Configure:
<space> f -> workbench.action.quickOpen
<space> <space> -> workbench.action.showCommands
- Verify both mappings work.
- Start and use a debug session.
- Return to the editor.
- Try the mappings again.
Result: mappings no longer execute until Developer: Reload Window.
This issue could be related: #7595
Vim debug log
2026-04-29 18:37:16.169 [debug] Handling key: <space>
2026-04-29 18:37:16.271 [debug] Handling key: f
2026-04-29 18:37:18.124 [debug] Status bar: -- NORMAL --
...
2026-04-29 18:37:37.095 [debug] Handling key: <space>
2026-04-29 18:37:37.535 [debug] Handling key: f
Description
After using the VS Code debugger, VSCodeVim stops resolving custom leader mappings until the window is reloaded.
Important detail: Vim itself is still active and still receives keys.
<space>is still recognized asleaderw,b, and text objects such asci(still workCtrl+Shift+Pstill workDeveloper: Reload Windowrestores the mappings immediatelyEnvironment
Minimal configuration
{ "vim.leader": "<Space>", "vim.useCtrlKeys": true, "vim.normalModeKeyBindings": [ { "before": ["leader", "f"], "commands": ["workbench.action.quickOpen"] } ], "vim.normalModeKeyBindingsNonRecursive": [ { "before": ["leader", "<Space>"], "commands": ["workbench.action.showCommands"] } ] }Steps to reproduce
<space> f->workbench.action.quickOpen<space> <space>->workbench.action.showCommandsResult: mappings no longer execute until
Developer: Reload Window.This issue could be related: #7595
Vim debug log