Show vim tab line even if only one file is open

大城市里の小女人 提交于 2019-12-10 14:39:43

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/47126131/show-vim-tab-line-even-if-only-one-file-is-open

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!