在 Vimium 中,默认使用“f”键在新选项卡中打开

Rus*_*wal 4 google-chrome-extension

在 Vimium 中,按f可使链接在当前选项卡中打开,按F(大写f) 可使链接在新后台选项卡中打开。我想反转这个映射,但是

map f F
map F f
Run Code Online (Sandbox Code Playgroud)

不起作用。noremap指定代替也不起作用map

try*_*ten 9

Mapping two keys to each other shouldn't do anything. You want:

map f LinkHints.activateModeToOpenInNewTab
map F LinkHints.activateMode
Run Code Online (Sandbox Code Playgroud)

If it did anything, it would be an infinite loop, which is bad.

Also, if you start with f and enter the hint (ie f S) in uppercase, that will open it in a new tab. (I think if the last hint key is in uppercase it will be a new tab, but I'm not positive.