vimium icon indicating copy to clipboard operation
vimium copied to clipboard

Jumping to tab no. 2 or 3?

Open Princu7 opened this issue 10 years ago • 3 comments

Currently the vimium provide the shortcut to jump to first tab by pressing g0 and last tab by pressing g$. What if want to jump to an arbitrary numbered tab like 3 or 4. I know I could just use J or K for traversing the tabs but a nice direct shortcut would be better. Is there any option to achieve the above functionality? Thanks!!

Princu7 avatar Nov 10 '16 12:11 Princu7

Try:

3g0

Or, if you need to map it to a key, then:

map X firstTab count=3

smblott-github avatar Nov 10 '16 12:11 smblott-github

@smblott-github Thanks for the ultra fast response. The problem is that I am using the vivaldi browser in which you can stack tabs on top of each other and create a super-tab sort of thing. When I press the g0, it takes me to the first super-tab and similarly on pressing g$, it takes me to the last super-tab just like I wanted. However when I press 3g0, it takes me to the third tab in the first super-tab. But I actually wanted to go to the third super-tab and not the third tab in the first super-tab.

Is there any option to accomplish the above task. And thank you again for your quick response. Have a great day!!

Princu7 avatar Nov 10 '16 12:11 Princu7

All credit to @smblott-github. Much appreciated!

map g1 firstTab 
map g2 firstTab count=2
map g3 firstTab count=3
map g4 firstTab count=4
map g5 firstTab count=5

leedre avatar Mar 14 '22 16:03 leedre