Cannot remap <C-e> in insert mode
See original GitHub issueDescribe the bug The following setting has no effect:
"vim.insertModeKeyBindingsNonRecursive": [
{
"before": ["<C-e>"],
"after": ["<esc>"]
}
],
(I don’t actually want it to remap to just <esc>
, but I’m starting simple.)
To Reproduce
Add the above text to settings.json
and save. Enter insert mode and try pressing C-e
. The character on the line below the current one is copied in – rather than performing the mapped action of <esc>
.
Expected behavior VSCodeVim acts as if Escape was pressed.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 0.16.12
- VSCode version: 1.29.1
- OS: Windows 10.0.15063
Additional context
This does not appear to be a duplicate of Unable to remap <C-s
> in insert mode. In that issue, the keys that people were trying to remap were not handled by VSCodeVim. In this case, <C-e>
is listed in packages.json, and VSCodeVim is doing something with the key (copying the character below the cursor).
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:18 (8 by maintainers)
Top GitHub Comments
Same behavior. I tried to remap:
Apparently there is trouble with remapping
ctrl
commands in general.See here for the parent issue. See here for a possible workaround.
I’m hitting this issue also, it’s very annoying but not quite as annoying as #3530 which I strongly suspect has the same cause as this.