即使只打开一个文件也显示 vim 标签行 [英] Show vim tab line even if only one file is open
问题描述
即使只打开一个文件,我也希望 vim 显示标签页眉(标签行).
I would like for vim to show the tab header (tab line) even if only one file is open.
例如,我使用 vim 打开一个文件.然后,我使用 :tabnew
在 vim 选项卡中打开另一个文件.Vim 然后在文件顶部显示一个漂亮的选项卡标题.我希望始终显示此选项卡标题(即,即使在 vim 中仅打开一个文件).
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.
推荐答案
是的,很抱歉.我在做 :help tabline
并没有看到任何东西.你只需要把 set showtabline=2
放在你的 vimrc
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
这篇关于即使只打开一个文件也显示 vim 标签行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!