altercation / vim-colors-solarized

precision colorscheme for the vim text editor
http://ethanschoonover.com/solarized
6.59k stars 1.76k forks source link

Better 256-color fallback in supported terminals #142

Open cwillu opened 9 years ago

cwillu commented 9 years ago

Apparently the 256 colors are just another palette, albeit one that is rarely uesr-customized. I suggest fixing that.

A quick and dirty proof-of-concept:

initc(){  tput initc "$1" $((0x$2*1000/256)) $((0x$3*1000/256)) $((0x$4*1000/256)); }
initc 234 00 2b 36
initc 235 07 36 42
initc 240 58 6e 75
initc 241 65 7b 83
initc 244 83 94 96
initc 245 93 a1 a1
initc 230 fd f6 e3
initc 136 b5 89 00
initc 166 cb 4b 16
initc 160 dc 32 2f
initc 125 d3 36 82
initc 61 6c 71 c4
initc 33 26 8b d2
initc 37 2a a1 98
initc 64 85 99 00

Before, with g:solarized_termcolors=256 set: image

After, with g:solarized_termcolors=256 still set: image

(My vim profile has some other colours set as well; inaccuracies from proper solarized stem from that).

Leeiio commented 8 years ago

Hi, i have the same problem. Could you tell me how to solve this?