0

When open multiple tabs, it will show in the topmost line something /c/e/n... alike.

But I already has filename and &modified in status line, which just waste space then. Also I find that line quite distracting.

Is there any way hide non active tabs completely?

  • 2
    :h 'showtabline'? – klaus Oct 25 '19 at 16:49
  • thx, that's what I want, should I delete question? – qeatzy Oct 25 '19 at 20:04
  • No, you can answer your own question. It would be better for newer users if you wrote an intelligible answer explaining the usage of :h showtabline in lieu of the just deleting the question. – klaus Oct 26 '19 at 6:44
  • I've taken the liberty to answer your question. You can edit it if you like, and then accept it as the correct answer if it did serve your purpose. – klaus Oct 26 '19 at 6:54
1

Just like :h 'laststatus', you can customize when you want your :h 'tabline' to show.

According to :h 'showtabline', you can set the value of the variable showtabline to any of the following numbers with associated significance following those numbers below.

    The value of this option specifies when the line with tab page labels
    will be displayed:
        0: never
        1: only if there are at least two tab pages
        2: always

So, in your case, you will need to set the variable showtabline to zero in order for it to be never shown. You can do that in either of the following manners.

:set showtabline=0
:let &showtabline=0
| improve this answer | |

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.