2

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? Commented Jun 6, 2019 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
    Commented Jun 6, 2019 at 7:23
  • 1
    please read the plugins documentation. Commented Jun 6, 2019 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
    Commented Jun 6, 2019 at 7:30
  • 1
    no, rather answer it ;) Commented Jun 6, 2019 at 7:31

1 Answer 1

3

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
    Commented Jun 6, 2019 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'
    – B.G.
    Commented Jun 6, 2019 at 11:51
  • 1
    you are totally right - wasn't on stackexchange since then -> so I missed it - sorry
    – baxbear
    Commented Jun 7, 2019 at 18:50

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.