Skip to content

Compatibility for builtin syntax groups #1883

@clason

Description

@clason

Vimtex 2.0 ships with a new syntax plugin with more consistent and structured syntax and highlight groups; this overrides the built-in syntax file (by default, unless let g:vimtex_syntax_enabled=0 disables the new syntax file and reverts to the old one).

However, it seems that other plugins rely on the specific groups and their names of the original syntax; see #1881 . To enable these, one can manually link the new groups to the old groups with, e.g., hi link texMathZoneZ texMathRegionEnsured.

It would be helpful to add a list of such commands to get back (as close as possible) to the old groups to the Wiki.

Even more convenient would be a function, e.g., vimtex#syntax#compat#set_groups() (or even an option g:vimtex_syntax_compat) that can be used to set these links from your vimrc/init.vim.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions