Vim icon indicating copy to clipboard operation
Vim copied to clipboard

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

Open Katzeee opened this issue 3 years ago • 0 comments

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?

Katzeee avatar Aug 04 '22 03:08 Katzeee