You are not logged in.

#1 2009-03-07 18:13:22

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

[solved] Vim: console and urxvt have different colors

Well, as you can see, vim in console (vc/1) and in urxvt has different colors:

tMWM5MQ tMWM5Mg

I'd like to have the same colors of console in urxvt (and not the opposite), is there a way?

I don't know from where the colors of urxvt come from. That blue with which is written '#include' and that green/cyan with which is written 'int' aren't even in my .Xdefaults.

TIA

Last edited by andre.ramaciotti (2009-03-08 12:17:16)


(lambda ())

Offline

#2 2009-03-07 18:27:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] Vim: console and urxvt have different colors

I believe that the console supports 16 colors, and urxvt by default supports a lot more than that (88?). I'm guessing that urxvt is closer to your vim theme than what you're seeing in the console. This, of course, is a guess of what may be happening.

Offline

#3 2009-03-07 21:04:35

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] Vim: console and urxvt have different colors

Use only colour 1-15, and have the same colour defined in the vc as in Xdefaults.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2009-03-07 21:45:48

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [solved] Vim: console and urxvt have different colors

The colours in Xdefaults and in the vc are the same, and I'm using the default theme of vim. Is there a way to trick vim so it thinks that urxvt is only 16-colours capable? A $parameter or an option I can set in .vimrc?


(lambda ())

Offline

#5 2009-03-08 03:12:16

N30N
Member
Registered: 2007-04-08
Posts: 273

Re: [solved] Vim: console and urxvt have different colors

andre.ramaciotti wrote:

Is there a way to trick vim so it thinks that urxvt is only 16-colours capable? A $parameter or an option I can set in .vimrc?

set t_Co=16

Offline

#6 2009-03-08 12:16:45

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: [solved] Vim: console and urxvt have different colors

Perfect! Thanks!


(lambda ())

Offline

Board footer

Powered by FluxBB