As soon as part of the text is hidden, they are colored, as determined by the Conceal selection Conceal . :help hl-Conceal will tell you more about the group. :highlight will show you all highlighted groups and their color ads. For instance. my hiding group looks like below:
Conceal xxx ctermfg=4 ctermbg=0 guifg=
To get more decent colors, you can, of course, set your own color and the properties of your hidden group inside .vimrc . The following is an example that will use bold, underlined text, using ANSI 9 as the foreground color and ANSI 0 as the background color for all files with the hs extension:
augroup AdjustConceal autocmd! autocmd ColorScheme *.hs highlight Conceal cterm=bold,underline ctermfg=9 ctermbg=0 augroup END
Alternatively, you can simply reference an existing allocation group. In the example below, the link will be from Conceal to Search :
augroup AdjustConceal autocmd! autocmd ColorScheme *.hs highlight link Conceal Search augroup END
source share