I'm trying to change the highlighting in vim for the highlighting group "Folded". I'm using the color scheme "koehler" and my folded lines appear in cyan on a grey background in gvim, which is completely unreadable. I thought I could edit the :highlight command responsible for this group in the koehler.vim color scheme file but there is no definition for "Folded" in that file.
I verified that I have color scheme koehler loaded:
:echo g:colors_name
koehler
Then I listed all the highlighting groups with a command I found in another post:
:so $VIMRUNTIME/syntax/hitest.vim
Highlighting groups for various occasions
-----------------------------------------
[...]
Folded Folded
FoldColumn FoldColumn
[...]
The "Folded" group is shown in the ugly colors I also see in my files. The file I was editing was a "viki" file but I get exactly the same with a perl script, so the highlighting for "Folded" must be defined somewhere central. I don't have any :hilight commands in my .vimrc.
How can I find out where this group is defined?
By default, Ctrl L in Vim clears and redraws the screen. A number of command line programs (mostly those using the GNU Readline library, such as Bash) use the same key combination to clear the screen.
Most filetypes (like python) in Vim come with a syntax that defines highlight groups (see them via :highlight ). A colorscheme then provides combinations of foreground / background color and/or formatting like bold and italic, for terminals, color terminals, and/or GVIM.
Using
:verbose hi Folded
You should be able to display where the Folded attribute was last modified. (Usually the answer is the active colorscheme file)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With