How to find out where vim allocation is determined?

I am trying to change the selection in vim for the Folded selection group. I use the “koehler” color scheme and my folded lines appear in blue on a gray background in gvim, which is completely unreadable. I thought I could edit the command: highlight, which is responsible for this group in the color scheme file koehler.vim, but there is no definition for "Folded" in this file.

I checked that I have the koehler color scheme loaded:

:echo g:colors_name koehler 

Then I listed all the selection groups using the command I found in another post:

 :so $VIMRUNTIME/syntax/hitest.vim Highlighting groups for various occasions ----------------------------------------- [...] Folded Folded FoldColumn FoldColumn [...] 

The Folded group is displayed in ugly colors, which I also see in my files. The file I edited was a "wiki" file, but I get exactly the same with a perl script, so the highlight for "Folded" should be defined somewhere central. I have no commands: hilight in my .vimrc.

How to find out where this group is defined?

+4
source share
2 answers

( hitest.vim does not tell you where something is defined. Only what is defined and grouped.)

This is similar to the default setting. You can override it in the color scheme (the easiest way is to copy $VIMRUNTIME/colors/koehler.vim to ~/.vim/colors/koehler.vim and add lines), for example:

 hi FoldColumn guifg=#465457 guibg=#000000 hi Folded guifg=#465457 guibg=#000000 

(This example is taken from a theme I use, molokai , which has pretty nice folding colors.)

+1
source

Using

 :verbose hi Folded 

You must show where the Folded attribute was last modified. (Usually the answer is the active colorscheme file)

+8
source

All Articles