gu-fan / colorv.vim

edit color easy
http://www.vim.org/scripts/script.php?script_id=3597
135 stars 12 forks source link

Can the preview for an edited color update after leaving ColorV window? #13

Closed sashahart closed 11 years ago

sashahart commented 11 years ago

For example, I put cursor over #FF0000 (nicely highlighted red) and type \ce.
Now I select a blue color and \cq. ColorV window closes. Good so far. But at this point, the text is not highlighted, there is no preview color on it.
To update, I have to do something like: save, or enter and exit insert mode, or type \cpp. Only then, the text is highlighted with the preview color.

Also, I don't need the whole buffer to update, just the swatch which I edited.

Did I do something wrong or would this be a new feature?

gu-fan commented 11 years ago

You can use :ColorVPreviewLine or <leader>cpl to preview one line.

I will highlight your edited color in the next patch

sashahart commented 11 years ago

Thank you, what a cool plugin :)

gu-fan commented 11 years ago

feature added edit/insert a color in a previewd buffer will make it auto highlighted.