The VSCodeVim team prioritizes issues based on reaction count.
Is this a BUG REPORT or FEATURE REQUEST?: Feature request
Changing handleKeys to take a mode (INSERT, NORMAL, VISUAL, etc) would allow greater customization and control over when vsc or vim should handle key events.
See #2056 as an example.
In normal mode pressing \ Note: The behavior of \
Adding the following to keybindings.json worked for me to map C-w to 'close window' in Normal mode and 'delete a word backwards' in Insert mode.
{
"key": "ctrl+w",
"command": "-extension.vim_ctrl+w",
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl"
}
{
"key": "ctrl+w",
"command": "extension.vim_ctrl+w",
"when": "editorTextFocus && vim.active && vim.use<C-w> && vim.mode == 'Insert' && !inDebugRepl"
}
Most helpful comment
Adding the following to keybindings.json worked for me to map C-w to 'close window' in Normal mode and 'delete a word backwards' in Insert mode.