I have successfully set my linestatus configuration. However, the only thing missing is some background color, either for the whole line as well as in particular elements. How can I set them?
I have successfully set my linestatus configuration. However, the only thing missing is some
Share
You need to define the colours as new highlighting groups User1, User2, etc:
Then you can specify them in the statusline string like so:
EDIT
This probably belongs in a new question, but here is the method I use to find the existing colouring for a highlight group. In this example I set the
Foldedsyntax to be the same as the currentNormalsyntax. I do this by directing the output ofhi Normalto a variable, and then extracting the various information from it.If there is a cleaner method, let me know!