In Vim, the text that forms the row of tabs at the top of the screen (when using tabs) is configured with the tabline option.
I’d like to make a few minor adjustments to the default tab pages line, such as replacing the number of windows in the tab with the index of the tab. Unfortunately, the default version of this (which is active when tabline is unset) is complicated and undocumented. There’s nothing for me to tweak.
Is there a piece of Vim script that provides the default implementation which I could adjust to my needs?
I use a custom function to reset the tab number and viewport numbers, from here (see Tonymec’s comment). You can play with it to change how you display the tabs.
Here’s what I have in my
.vimrc. It’s only a slightly modified version, that changes how the tab# and viewport# are displayed.And here are the colors defined in my function: