简体   繁体   中英

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 . 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.

if &background == "dark"     
  let s:base03 = "NONE"     
  let s:base02 = "NONE"     
endif

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM