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

[Feature request]: provide a command to make it asynchronous. #185

Closed ubaldot closed 1 year ago

ubaldot commented 1 year ago

I like this plugin and it is fairly fast.

However, it would even faster with a "toggle" command that enable/disable color display in an asynchronous way, without need the plug-in to continuously run in background. A possible use case would be like

Init = color disabled.

  1. User has a palette of many codes (with no color highlight) and he has to find a specific blue in that palette.
  2. He run the toggle command => that the code are highlighted. He can easily locate the blue that he needs and copy the code
  3. He run the toggle again => the color highlight is disabled.