Vim
Vim copied to clipboard
How to bind "shift+R" to switch tabs avliable in normal mode but silent after pressing 'r'?
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?