Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Vimium, make opening in new tab default with `f` key [closed]

In Vimium, pressing f makes links open in current tab, and pressing F (capital f) makes links open in new background tab. I want to reverse this mapping, but

map f F
map F f

doesn't work. Nor does specifying noremap instead of map work.

like image 495
Rushi Agrawal Avatar asked Sep 16 '25 01:09

Rushi Agrawal


1 Answers

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

map f LinkHints.activateModeToOpenInNewTab
map F LinkHints.activateMode

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.

like image 136
trysten Avatar answered Sep 17 '25 17:09

trysten