Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cursorline hides background colors set by vim-css-color #12

Open
losingkeys opened this issue Apr 30, 2012 · 7 comments
Open

cursorline hides background colors set by vim-css-color #12

losingkeys opened this issue Apr 30, 2012 · 7 comments

Comments

@losingkeys
Copy link

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

@MarioRicalde
Copy link

This is still a issue.

@Olical
Copy link

Olical commented Jan 22, 2013

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.

@jhenninger
Copy link

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".

@gko
Copy link

gko commented Aug 11, 2013

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 =)

@MarioRicalde
Copy link

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

Thanks!

@chrisbra
Copy link

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

@ap
Copy link

ap commented Jan 11, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants