mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 159 forks source link

Solarized-light配色和vim的solarized搭配时有问题 #107

Closed SmartFan closed 4 years ago

SmartFan commented 6 years ago

将控制台配色设置为solarized-light,vim配色设置为solarized时会出现如下的情况: Set console theme to solarized-light and vim theme to solarized dark/light, here's what I get: image image 图中高亮的行是dark和light的设置,和效果似乎反过来了。 Highlighted line sets vim theme to dark/light but the outcomes seem inversed. 不过,如果控制台的配色设置为solarized-dark,则vim的solarized主题也可以正常作用。 Meanwhile, vim solarized themes work well with console solarized-dark theme. 如何解决这个问题呢? Is there a way to solve this?

HankelBao commented 6 years ago

你可以试试base16-shell,可以和vim配合使用 You may try base16-shell, which could collaborate with vim.

mskyaxl commented 4 years ago

I am actually using solarized for a while and this is what's working for me

set t_Co =256 
syntax enable
let g:solarized_termcolors=256
set background=dark

(you can also find it in: https://github.com/mskyaxl/dotfiles/blob/master/vim/vimrc )

I am using the default mintty theme and it looks like this

image

image

Probably with a better theme you can get closer to what's shown in the screenshots on solarized website.

mskyaxl commented 4 years ago

or even better, you keep only

syntax enable
set background=dark

but use one of the themes from here:

https://github.com/karlin/mintty-colors-solarized

and you get something like this: image image