Urxvt with weird colors in Vim

1

I installed Urxvt on Ubuntu 18.04 to test it and when I opened Vim I saw the weird colors on the left, when it should be as shown on the right:
Vim Weird Colors   Vim Okay Colors

I tried to change the color scheme, I set the t_Co=256, my $TERM is xterm-256color, in .Xresources the termName is xterm-256color, everything I changed and nothing happened, this weird thing is still here.

Xterm uses the same config file, and in Xterm everything is normal. Currently I use Terminator, but I want to use Urxvt, but I need to solve this. I read about the lack of true color support that Urxvt has, but I don't if this is the case because other YouTubers use Urxt with normal color schemes in Vim.

Rodger Bittencourt

Posted 2019-06-19T01:49:42.107

Reputation: 11

Did you logout and login again after every change? – Scott – 2019-06-19T03:08:24.623

1Yes I did, but it didn't solve either. – Rodger Bittencourt – 2019-06-19T11:33:52.787

"my $TERM is xterm-256color" – I'm not sure if it's a wise choice. Have you tried urxvt's default, that is, rxvt-unicode-256color? – egmont – 2019-06-19T13:53:08.243

Yes, I tried... Nothing yet. – Rodger Bittencourt – 2019-06-19T17:22:49.670

Answers

0

Not an expert, but I've had similar issues setting up urxvt/vim. I fixed it with the setting set notermguicolors and set background=dark in vim, though the latter might not be necessary in your case.

CurveEnthusiast

Posted 2019-06-19T01:49:42.107

Reputation: 101