ap / vim-css-color

Preview colours in source code while editing
http://www.vim.org/scripts/script.php?script_id=5056
MIT License
1.77k stars 78 forks source link

weird inaccurate colors #147

Closed stevensonmt closed 3 years ago

stevensonmt commented 3 years ago

The first image is with css-color enabled, the second is without it.

Screenshot-2021-02-23-21-29-08.png Screenshot-2021-02-23-21-36-14.png This is the color that is highlighted both fg and bg in that green color: Screenshot-2021-02-23-21-44-39.png

What's going on here?

Additional info: Interestingly vim-hexokinase displays the expected colors with the highlighting method of signcolumn or foreground but with the highlighting method of background it looks almost exactly like the css-color result above. Is it something to do with the background of my vim colorscheme?

stevensonmt commented 3 years ago

Error in my vimrc.

ap commented 3 years ago

What was the error?

stevensonmt commented 3 years ago

Typo of colon instead of semi-colon as pointed out by RRethy:

Change

let &t_8b = "\<Esc>[48:2;%lu;%lu;%lum"

to

let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"