[英]solarized dark for vim and incorrect background color with xterm terminal emulator, black instead of darkblue
Following is my configuration for solarized colorscheme. 以下是我对日晒色化学的配置。
let g:solarized_termcolors=256 set t_Co=256 set background=dark colorscheme solarized
But the background color is not dark blue, but dark or grey, similar like that. 但是背景颜色不是深蓝色,而是深或灰色,类似。
I have tried remove let g:solarized_termcolors=256
, remove set t_Co=256
, add let g:solarized_termcolors=16
or add set t_Co=16
. 我试过删除
let g:solarized_termcolors=256
,删除set t_Co=256
,添加let g:solarized_termcolors=16
或添加set t_Co=16
。 But still display the wrong background color. 但是仍然显示错误的背景色。
How can I do any config to change that incorrect background color to darkblue ? 如何进行任何配置,以将不正确的背景颜色更改为深蓝色?
@jasOns, to add to your solution to still allow the option to toggle between light and dark backgrounds, you can add the following below where base02
and base03
are set. @jasOns,要添加到您的解决方案中以仍然允许该选项在浅色和深色背景之间切换,可以在设置了
base02
和base03
下方添加以下内容。
if &background == "dark"
let s:base03 = "NONE"
let s:base02 = "NONE"
endif
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.