First keypress of `<C-f>` map key in insertMode not triggered
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
InsertMode key mapping for is something wrong!
The first time to press <C-f> did not trigger map keys!
To Reproduce
Steps to reproduce the behavior:
- change user setting for the plugin as
"vim.leader": ",",
"vim.useCtrlKeys": true,
"vim.insertModeKeyBindings": [
{
"before": ["<C-f>"],
"after": ["<right>"]
}
],
"vim.handleKeys": {
// "<C-f>": false
},
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "w"],
"commands": [":w"]
},
{
"before": ["<leader>", "f", "l"],
"commands": ["workbench.action.toggleSidebarVisibility"]
},
{
// "before": ["<leader>", "<leader>", "f"],
"before": ["<leader>", "<C-f>"],
"commands": ["editor.action.formatDocument"]
}
]
- toggle the develop tools
- open a file with somthing, and press
ito change to inserMode - press
<C-f> - press
<C-f>again.
Expected behavior
every time pressed <C-f> in insetMode, develop tools debug logs should trigger <right> key.
Screenshots
the first time press <C-f>, it would not trigger <right> key, like this:

over press more than the sceond time for <c-f>, it work!

Environment (please complete the following information):
- Extension (VsCodeVim) version:
- VSCode version: 1.26.1
- OS: maxOS 10.13.6
Additional context
Nothing!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the provided VSCodeVim settings, especially the insertMode mapping from to , and inspect the insert-mode key-mapping handling. Done means the first and every subsequent press triggers the mapped key, with the behavior verified in the VS Code developer tools logs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100