Major version release
Full syntax support has now been adopted into Vimtex (see #1799 and #1834 for releated discussions). This marks a major change. Some important notes:
- Vimtex assumes that people want LaTeX filetype for all
.tex
files. One may still specifyg:tex_flavor
specifically to avoid this. That is, Vimtex respects the setting ofg:tex_flavor
if it is explicitly defined. - Vimtex no longer respects the "internal" options such as
g:tex_fast
andg:tex_conceal
. For conceals, see:help g:vimtex_syntax_conceal
. - The Vimtex syntax script is very different from the built-in syntax support. There may be some minor overlap of syntax group names, but most of the groups have new names.
- The Vimtex syntax script is developed to be consistent, structured, and as simple as possible. One goal has been to make it easy to customize syntax highlighting and LaTeX specific colorschemes.
- The Vimtex syntax script does not support syntax folding.
- See
:help vimtex-syntax
for a more complete reference and documentation of the new syntax feature. See also the wiki for an example of how to customize the highlight groups.
New options
g:vimtex_syntax_conceal
g:vimtex_syntax_conceal_default
g:vimtex_syntax_packages
Deprecated options
g:vimtex_syntax_autoload_packages
(in favor of the newg:vimtex_syntax_packages
)
Acknowledgements
This has been quite a lot of work. It would have been much harder without the very useful and constructive feedback from and review by @clason and @Rmano. Thank you!