azabiong / vim-highlighter

Highlight words and expressions
MIT License
226 stars 9 forks source link

How to re-order colors #4

Closed zach-is-my-name closed 2 years ago

zach-is-my-name commented 2 years ago

Hi,

It's not clear to me from reading the documentation how to re-order the colors. Can you please help me out?

azabiong commented 2 years ago

Hi zach, Thanks for your interest in this plugin.

As you know, each preset color has a number, and is applied to words in order by default. And you can also give the color number using number keys before setting, like 7 HiSet for brown color.

Reordering colors is relatively easier than editing the colors with adjustments. If you have a list of colors, you may only need to change the color numbers.

To get the color list and change the numbers, and finally save and load them, the following steps may be useful.

zach-is-my-name commented 2 years ago

Thank you. The rest of the documentation seemed clear and this feels like a solid plugin for a wonderful use-case. Next time I need to use the feature, I'll reference this to get the effect I'm looking for

azabiong commented 2 years ago

Nice, I hope this tool helps. Please let me know if you need any other feature. Thank you