1

I would like the tabbar to start with the first tab not with "tabs".

"tabs>1 main.tex>2 section_01.tex>     <tab 2/2"
5
  • 1
    please show a screenshot? is this vim-airline plugin? Jun 6 '19 at 7:22
  • Ah, yeah you are right it is probably from the plugin - using it for so long that I didn't even notice myself.
    – baxbear
    Jun 6 '19 at 7:23
  • 1
    please read the plugins documentation. Jun 6 '19 at 7:25
  • Thank you for your help I forgot about airline, airline#extensions#tabline#tabs_label = ''" solves it - should I remove the question?
    – baxbear
    Jun 6 '19 at 7:30
  • 1
    no, rather answer it ;) Jun 6 '19 at 7:31
2

The actual behavior occurs because of the vim-airline plugin and can be removed adding the following property to your vimrc:

let g:airline#extensions#tabline#tabs_label = ''

So there will be no more leading "tabs>" in the tabline.

3
  • 1
    This doesn't really look like valid vimrc syntax... Are you missing a let command there perhaps? If so, I'd call that a "variable" rather than a "property" since that's the usual naming for let. Is it a global variable and, if such, should you be explicit and use a g: prefix to make that clear? (Not sure how the plugin documentation examples are written... Probably best to keep consistent with them.) Thanks!
    – filbranden
    Jun 6 '19 at 11:40
  • 1
    @filbranden indeed, in the doc it is like this: * rename label for tabs (default: 'tabs') (c) > let g:airline#extensions#tabline#tabs_label = 't' Jun 6 '19 at 11:51
  • you are totally right - wasn't on stackexchange since then -> so I missed it - sorry
    – baxbear
    Jun 7 '19 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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