As of Vim 9.1.1800, the syntax/tex.vim
file in $VIMRUNTIME
contains the following lines, among others:
hi texBoldStyle gui=bold cterm=bold hi texItalStyle gui=italic cterm=italic hi texBoldItalStyle gui=bold,italic cterm=bold,italic hi texItalBoldStyle gui=bold,italic cterm=bold,italic
However, if one is using a colorscheme that begins with highlight clear
(as all builtin colorschemes do and as the recommended template for new colorschemes does), then these highlights will be cleared, which is not desired. The highlights for these groups should instead be defined as links to the Bold
etc. group, something like:
hi def link texBoldStyle Bold hi def link texItalStyle Italic hi def link texBoldItalStyle BoldItalic hi def link texItalBoldStyle BoldItalic
(This bug report arises from https://vi.stackexchange.com/q/47249/1044.)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.
A similar problem also applies to highlight groups like htmlBold
and rstEmphasis
. Should separate issues be filed for these, or should this issue be widened?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.