To expand on @Tumbler41's comment about
:tabs, it shows you a list of tabs like
:ls shows you buffers. But, there isn't a command to go directly to a tab from this list like using
You can fake it by using
:<count>tabdo:. The colon at the end is basically a no-op command that's considered a valid argument for
:tabdo. To streamline this, you can turn it into a command:
command! T tabs|execute input('Select Tab: ').'tabdo:'
After the tabs are listed, you enter a number and press
<cr> to jump to the tab. The same thing can be done with
command! L ls|execute input('Select Buffer: ').'b'
The caveat here is that if listing scrolls, you won't be able to scroll back up once the prompt is displayed. Another problem is that this accepts any input which aren't a valid command count.
Here's a version that's a little safer but more verbose:
command! T tabs|execute substitute(input('Select Tab: '), '^\d\+$', '\0tabdo:', '')
The substitution only adds
tabdo: if the input is all digits. Otherwise, the input is executed as-is.