[vim/vim] `syntax/tex.vim` should link `texBoldStyle`, `texItalStyle`, etc. to `Bold`, `Italic`, etc. (Issue #18505)

4 views
Skip to first unread message

John T. Wodder II

unread,
Oct 6, 2025, 7:24:20 PM (15 hours ago) Oct 6
to vim/vim, Subscribed
jwodder created an issue (vim/vim#18505)

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.Message ID: <vim/vim/issues/18505@github.com>

John T. Wodder II

unread,
Oct 6, 2025, 7:27:57 PM (15 hours ago) Oct 6
to vim/vim, Subscribed
jwodder left a comment (vim/vim#18505)

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.Message ID: <vim/vim/issues/18505/3374628960@github.com>

Reply all
Reply to author
Forward
0 new messages