vim-css-color icon indicating copy to clipboard operation
vim-css-color copied to clipboard

cursorline hides background colors set by vim-css-color

Open losingkeys opened this issue 13 years ago • 7 comments

When I have cursorline set (:set cursorline) and a color that vim-css-color changes the backgroung for (for instance background: orange;), the background color set because of cursorline overrides the one set by vim-css-color. However when I search (and I have hlsearch enabled), the yellow of the matched word(s) from the search overrides the cursorline background. Is there a way this plugin can do the same?

image showing the issue: image showing the cursorline/vim-css-color issue

losingkeys avatar Apr 30 '12 17:04 losingkeys

This is still a issue.

MarioRicalde avatar Oct 28 '12 14:10 MarioRicalde

I wouldn't mind but if the color is #FFFFFF (for instance) then the text color is set to black. So when you move onto that line with a dark theme the text becomes almost invisible. The indent guides plugin seems to be able to set the correct background color. Maybe that would be a place to look for a solution.

Olical avatar Jan 22 '13 17:01 Olical

https://github.com/lilydjwg/colorizer also works with cursorline enabled and is not limited to CSS files. Unfortunately, it does not visualize named colors, e.g. "red".

jhenninger avatar May 22 '13 13:05 jhenninger

Hi everyone, I ended up merging two plugins(Aristotle Pagaltzis version of vim-css-colors) and colorizer, so that I can avoid this bug but keep hsl(a) and named colors. You can grab it here Don't forget to put 'star' on repo =)

gko avatar Aug 11 '13 18:08 gko

@gorodinskiy nice! I'm going to check it out.

Thanks!

MarioRicalde avatar Aug 11 '13 18:08 MarioRicalde

My improved color highlight plugin also does not have that problem: https://github.com/chrisbra/color_highlight

chrisbra avatar Sep 24 '13 10:09 chrisbra

My optimised, HSL-supporting fork of this plugin now has a fix for cursorline too → ap/vim-css-color

ap avatar Jan 11 '14 11:01 ap