Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

vim: highlight Folds change only background color

I have commented out the

"hi Fold …

line in my current vim-colorscheme (xoria256 modified), but when I edit there is still (an even uglier) syntax highlight. I looked in the syntax file for the specific filetype - but there was no Fold highlight too. Now I don't know where to look for a "default syntax highlighting".

In the end I just want to have folds with foreground color as specified by syntax and just the background changed. Maybe I am thinking to much and there is a plain easy way to do that.

ps: i tried to leave off the guifg and ctermfg part to no success.

like image 282
epsilonhalbe Avatar asked Jun 27 '12 10:06

epsilonhalbe


1 Answers

I'm afraid that doing so is not possible (at least without touching Vim's source code). The text in the fold line is computed and not part of your file, which means that it will not be processed like the rest of the text/code and it will be only applied the Folded highlighting group. That's why you get a single foreground color when you comment out the hi Folded line.

like image 100
pacha Avatar answered Nov 01 '22 18:11

pacha