如何更改vim状态行的颜色? [英] How can I change vim status line color?
本文介绍了如何更改vim状态行的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过编辑.vimrc
来更改vim的状态行颜色.
I'm tring to change vim's status line color by editing my .vimrc
.
通过使用命令au
,我试图在进入或退出插入模式时更改状态行的颜色;通过使用此命令,什么都不会发生:
By using the command au
, I tried to change the color of the status line when entering or leaving insert mode; by using this command nothing happens:
hi StatusLine guibg=whatevercolourIwant
通过直接更改状态行颜色,而无需任何au
命令,背景将保持不变.
By changing the status line color directly, without any au
command, the background remains the same.
执行该命令是否有理由
:hi StatusLine guibg=red
,
例如,状态栏的背景仍然保持绿色吗?
for instance, the background of the status bar still remains greenish?
推荐答案
如果在终端中运行vim,请尝试:
if you are running vim in terminal, try:
hi StatusLine ctermbg=whatever ctermfg=whatever
guibg guifg用于GUI.
guibg guifg are for GUI.
希望有帮助.
这篇关于如何更改vim状态行的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文