0

Can I control the highlighting of the foldtext separately from the color of the line number on a folded line?

I want the foldtext to be quite visible while keeping my chosen line number color

1 Answer 1

1

I'm afraid this isn't possible. See :help fold-colors:

The colors of a closed fold are set with the Folded group hl-Folded. The colors of the fold column are set with the FoldColumn group hl-FoldColumn. Example to set the colors:

:highlight Folded guibg=grey guifg=blue
:highlight FoldColumn guibg=darkgrey guifg=white

The Folded group encompasses the line number; no further configuration than the above is available.

There is currently an open issue requesting a way to achieve what you ask for, so the Vim maintainers are aware of the problem.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.