Vojtěch Pejša
Vojtěch Pejša

Reputation: 1

How to add fold highlighting to .vimrc in vim

I want to highlight my folded text. If I use:

:highlight Folded ctermbg=black ctermfg=white cterm=bold

everything works ok, but when I add this line to my .vimrc:

highlight Folded ctermbg=black ctermfg=white cterm=bold

nothing happens (I mean after reopening vim). Any idea why?

Upvotes: 0

Views: 147

Answers (1)

Armali
Armali

Reputation: 19375

Try :verbose hi Folded to see where the current highlight for Folded is defined. Most likely you have a color scheme that overrides the setting from vimrc. – Andrey R

Make sure to place the highlight line after you set your colorscheme. – FDinoff

Upvotes: 1

Related Questions