如何去除 Vim 屏幕顶部的白条?
To recreate, do :set background=dark
, and you’ll see it on top of the screen. I’m using the railscasts theme, but I don’t think it has anything to do with that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
设置
background=dark
不足以显示选项卡,您应该使用vim -u NONE
开始重新创建。默认情况下,除非有多个选项卡,否则不会出现选项卡行。此行为由
showtabline
选项控制,默认为1
。即使有多个选项卡,0
也会关闭选项卡行,即使只有一个选项卡,2
也会显示选项卡行。尝试使用verbose set showtabline?
找出用showtabline=2
替换showtabline=1
的脚本。Setting
background=dark
is not enough to show the tabline, you should start recreation withvim -u NONE
.By default tabline does not appear unless there is more then one tab. This behavior is controlled by
showtabline
option which defaults to1
.0
switches off tabline even if there is more then one tab,2
makes tabline to be shown even if there is only one tab. Tryverbose set showtabline?
to find out what script replacedshowtabline=1
withshowtabline=2
.这是railscasts 颜色方案不处理的选项卡。如果您想要标签线但不希望它是白色的,您需要根据自己的喜好编辑颜色方案。
首先添加以下内容:
这些是 GVim/MacVim 特有的,要使其在终端中工作,您需要添加
到每一行。
请参阅
:帮助颜色方案
。It's the tabline which is not dealt with by the railscasts colorscheme. If you want the tabline but don't want it to be white you'll need to edit your colorscheme to your liking.
Start by adding the following:
These are specific to GVim/MacVim, to make it work in the terminal, you'll need to add
to each line.
See
:help colorscheme
.