8

I want to have uniform highlighting of line numbers (provided by the LineNr and CursorLineNr hl-groups) but the line numbers of folded lines don't obey a particular group (as far as I know), but obey the highlighting of the Folded group.

As you can see in the image of my ~/.vimrc file, the line-numbers of unfolded lines are bold with yellow foreground; while the line-numbers of folded lines are regular with white foreground (the same configuration of the rest of the folded line).

Example of irregular line-number color of folded lines

So, how can I make the folded-lines' number become equal of the rest of the LineNr column?

2
  • 7
    This is not possible. The whole line belongs to the Folded highlight group.
    – romainl
    Commented Jun 2, 2016 at 19:36
  • 4
    The closest you'll get is :hi! link linenr folded :-)
    – Antony
    Commented Jun 3, 2016 at 16:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.