VSCodeVim / VSCodeVim/Vim

How to bind "shift+R" to switch tabs avliable in normal mode but silent after pressing 'r'?

Open
#7,887 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In keybinding.json, I have

{
        "key": "shift+r",
        "command": "workbench.action.nextEditor",
        "when": "vim.mode == 'Normal'"
    },
    {
        "key": "shift+e",
        "command": "workbench.action.previousEditor",
        "when": "vim.mode == 'Normal'"
    },

which makes it possible to switch tabs by E and R, but there is a problem that I can't replace a character to 'E' or 'R' by rR or rE, they just act as tab switching.

So how can I do it?

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

The report identifies keybinding.json and the two VS Code keybindings; start by reproducing the rR/rE behavior with those entries and inspect the extension's keybinding handling. Done would be a documented or tested resolution that preserves normal-mode tab switching without breaking character replacement.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vim, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.