Skip to content

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

@losingkeys

Description

@losingkeys

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

Activity

MarioRicalde

MarioRicalde commented on Oct 28, 2012

@MarioRicalde

This is still a issue.

Olical

Olical commented on Jan 22, 2013

@Olical

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

jhenninger commented on May 22, 2013

@jhenninger

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

gko commented on Aug 11, 2013

@gko

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

MarioRicalde commented on Aug 11, 2013

@MarioRicalde

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

Thanks!

chrisbra

chrisbra commented on Sep 24, 2013

@chrisbra

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

ap

ap commented on Jan 11, 2014

@ap

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ap@MarioRicalde@jhenninger@chrisbra@Olical

        Issue actions

          cursorline hides background colors set by vim-css-color · Issue #12 · skammer/vim-css-color