Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show vim tab line even if only one file is open

Tags:

vim

tabs

I would like for vim to show the tab header (tab line) even if only one file is open.

For example, I open a file using vim. Then, I use :tabnew to open another file in a vim tab. Vim then displays a nice tab header at the top of the file. I would like this tab header to always be displayed (i.e. even if only one file is open in vim).

Also, not really a fan of the airline plugins, so not really looking for those kinds of answers.

enter image description here

like image 447
J-Win Avatar asked Nov 05 '17 20:11

J-Win


1 Answers

Yes sorry about that. I was doing :help tabline and didn't see anything. You just need to put set showtabline=2 in your vimrc

like image 135
J-Win Avatar answered Oct 16 '22 12:10

J-Win