Remapping replace (`r` key normally in vim) doesn't work
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
I have the following setting:
{
"before": ["y"],
"after": ["r"]
},
{
"before": ["Y"],
"after": ["R"]
},
{
"before": ["r"],
"after": ["i"]
},
{
"before": ["R"],
"after": ["I"]
},
inside of vim.normalModeKeyBindingsNonRecursive
Pressing 'y' in normal mode doesn't replace the key highlighted, instead it does absolutely nothing!
If I remove {
"before": ["r"],
"after": ["i"]
}, setting, the 'r' key works how I would want my 'y' key to behave.
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 in VS Code using the shown vim.normalModeKeyBindingsNonRecursive mappings, then trace the key-remapping entry point that handles y and r in normal mode. Done means y performs the replace action normally associated with r even when r is remapped to i, while the existing y/Y mappings continue to work.
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
- 45/100