Skip to content

syntax/tex.vim should link texBoldStyle, texItalStyle, etc. to Bold, Italic, etc. #18505

@jwodder

Description

@jwodder

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions