VSCodeVim / VSCodeVim/Vim

`normalModeKeyBindingsNonRecursive` cannot handle 4 keys

Open
#3,185 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/remap
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

I would like to emulate ninjafeet by manually defining the mappings that I always use:
{ "before": ["z","[","a","b"], "after": ["F","(","i"] },
(A rough implementation of finding the previous ( on the line and start insert mode.)

However, while F(i works, and deleting any of the keys in the before array also works ([ab, zab, z[b, z[a). I have also tried that zxab doesn't work either.

I wonder if there is a setting limiting the number of keys. I have also tried to lengthen the time for remapping from 1000 to 3000. I don't think that is the reason.

Thanks in advance. (VSCode version 1.28.2)

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

Reproduce the issue with the shown normalModeKeyBindingsNonRecursive mapping in VS Code and compare four-key input with the working shorter mappings. Trace the normalModeKeyBindingsNonRecursive handling and verify that the four-key sequence is recognized without relying on the timeout setting; done when the reported mapping works as described.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.