Or at least, where to find it in the Vim source code?

Tried to show it with :set tabline, but only got an empty string back. The custom function example in :h tabline is helpful and one that

resembles the default, but without adding a + for a modified buffer or truncating the names.

Why do I need this?

What I'm trying to achieve is pretty much explained in this answer, but can't get into the intricacies of Vimscript at the moment to recreate the default behaviour, so I was planning to

  1. get the default function, and
  2. tack the above solution onto it.

(If this is not possible, will just have to find the time to learn Vimscript properly..:)

1 Answer 1


Just like for the status line, the internal routine used to generate the tab line is simply not accessible at runtime so looking for it is an exercise in futility.

The recommended approach, as with the status line, is to replicate the default behavior, and then, customize it to your requirement. See the example under :help setting-tabline.

That replication and that customization are supposed to happen in the linked answer's MyTabLine().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.