Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim theme light solarized doesn't work with xfce4-terminal, even with terminal theme

I'm trying to use the light solarized theme with vim and xfce4-terminal.

I installed the theme for xfce4-terminal:

cd
mkdir solarized ; cd solarized
git clone https://github.com/sgerrand/xfce4-terminal-colors-solarized.git
cp xfce4-terminal-colors-solarized/light/terminalrc ~/.config/xfce4/terminal/

Apparently it works fine. However, when I use vim, the colors are different from the expected:

xfce4-terminal + vim + solarized (light)

Gvim presents the correct colors. Konsole (with the proper theme, from the same git repository) shows the correct colors too.

The dark theme is presented correctly if change the vim and the xfce4-terminal theme.

I tried to change TERM and t_Co, but it didn't work.

I tried to follow this answer but it remains with the incorrect colors.

The link above says that the xfce4-terminal devs have changed the syntax of terminalrc.

When I compare xfce4-terminal and konsole pallets, I see that the there are some colors different, so I think terminal isn't reading rightly the terminalrc archive. Since the terminalrc archive from git is 2 years old, it makes sense. However, I don't know how to modify to the correct colors since I don't know the correspondence between the pallets of Konsoleand Xfce.

Does anyone have a suitable archive? Does anyone want to create one and make it available via git, updating the config for other people? (presuming that it's in fact a problem with the recent syntax.)

like image 575
user35477 Avatar asked Dec 13 '25 13:12

user35477


1 Answers

I have exactly the same problem. I get the best results with this. It is not 100% the same but looks best to me

let g:solarized_termcolors=256
syntax enable
set background=light
colorscheme solarized
set t_Co=256

Hope that helps

like image 93
Kais3n Avatar answered Dec 16 '25 23:12

Kais3n



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!