VimTeX: A modern Vim and neovim filetype plugin for LaTeX files.
It is again time for a release. There's been plenty of updates!
Note: After updating, please open some .tex
file and run :VimtexClearCache ALL
(see #2095 for more details on why).
Features
:VimtexClearCache
command (#2095)*Notes.bib
files from revtex*
class (#2090)menu_fmt
, see :help g:vimtex_complete_bib
(#2091).bib
files (#2089, #2066)\*@ifnextchar
(#2094)Fixes
tex2unicode
substitutions (#2091).bib
file globbing (#2035, #1658)Documentation
:help vimtex-complete-cites
(#2095, #2091)Ackowledgements Thanks to @TpmKranz, @andryandrew, @otreblan, @paniash, @savq, @Nicholas42, @postylem, and @yongrenjie for the PR contributions! Also a special thanks to @clason who is being helpful in answering questions and providing thoughtful comments and suggestions in many issues and threads.
It is time for another release. Mostly due to the number of minor changes and fixes. There is no major change in this release. The most important updates are listed below.
Features
<space>
behaviour in ToC windows (#2062)\*cites
commands (#2016)g:vimtex_toc_config_matchers
to allow more user customization of ToC matchers (#2011)g:vimtex_view_automatic_xwin
to avoid searching for existing viewers with Zathura/MuPDF (#2026)% VimTeX: SynIgnore on|off
to handle difficult syntax situations (#2038)\parbox
and minipage
environment (#2044)mhequ
package (#2042)add(sec|part|chap)
(#2003)todonotes
packageg:vimtex_syntax_custom_cmds
(#1972)Documentation
Fixes
winfix*
(#2060)caddfile
caused unwanted autocmds to fire (#2029)g:vimtex_indent_conditionals
(#1078, #2023)fdm=diff
when refreshing folds in diff mode (#2014)Other
Ackowledgements Thanks to @postylem, @jaekyeom, and @kunzaatko for the PR contributions!
This is a minor release with some improvements and fixes (see below). I'm vere happy to notice that there's been a large number of contributors with pull requests for this release!
Features
g:vimtex_syntax_conceal_cites
:
i) \cite{Knuth1981}
-> [Knuth1981]
ii) \cite{Knuth1981}
-> 📖
\textsl
and \mathbf
); both in general and with additional conceal support (#1968, #1991).\url
- allow percent symbol (#1990).comment
package (#1988).g:vimtex_indent_tikz_commands
(#1960, #1970).ac
and ic
for math mode spacing commands, e.g. \;
(#1966).Fixes
\lstset
(#2000, #2001).vimtex#fzf#toc
(#1996).get_pid()
method of the Zathura viewer (#947, #1971).fsync
(#1986).Other
Ackowledgements Thanks to @rsekman, @IngoMeyer441, @patricknraanes, @Airwan, @psvenk, @JingMatrix, @cridemichel, @TornaxO7, @WeixuanZ, @144026, @perebohigas for submitting PRs!
This is a new minor release with a few fixes and improvements, and one important change.
Changes
<cr>
to <localleader>la
to avoid mapping a key that already has a specific meaning in Vim/neovim. See #1541.Features
\lstinline
(#1956).cse
and similar to match "unmatched" environment pairs (#1952).Other
Ackowledgements
Thanks to @bk90 for submitting a PR!
This is again a minor release with fixes to some issues and some minor improvements. However, there is one milestone change on the meta level: @salutis suggested in #1894 that the proper spelling of Vimtex should be VimTeX, and after a vote on Reddit I decided to go with this. Thus, VimTeX is now the proper spelling.
In addition to some fixes and refinements, there has been some work on the docs, and some feature improvements. The detailed log is in the commit history, the following are some highlights.
Features
K
mapping (#1928):help vimtex-generic-compiler
and #1898)Ackowledgements
Thanks to @patricknraanes, @Toromtomtom, @shuber2, @Apfelkuchen6, @ThePaulrBear, @ces42, @LinuxMercedes, and @JingMatrix for submitting PRs!
This is a minor release that mainly addresses some issues with the new syntax plugin released in version 2.0.
The release brings one breaking change with respect to the old version: The syntax plugin used the naming scheme tex{type}Region
for syntax regions, e.g. texMathRegion
for math-mode regions. However, since this was only a minor change from the name tex{type}Zone
that is used in the internal syntax plugin, and since a lot of people are using simple scripts to detect math mode based on the syntax, the change brought by Vimtex version 2.0 seems unnecessary and only means things get more complicated for a lot of people. Thus, in this minor release we revert the naming scheme back to tex{type}Zone
. For more information and related discussions, see #1880 and #1883.
Features
\if
, \else
, and \fi
\let
\let
, \def
and \newcommand
vimtex#syntax#in_mathzone
now accounts for \text
arguments (#1884)Acknowledgements Thanks to @j1-lee, @Konfekt, and @tomtomjhj for the PR contributions!
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:
.tex
files. One may still specify g:tex_flavor
specifically to avoid this. That is, Vimtex respects the setting of g:tex_flavor
if it is explicitly defined.g:tex_fast
and g:tex_conceal
. For conceals, see :help g:vimtex_syntax_conceal
.: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 new g: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!
It's again time for a minor release.
Features and improvements This release brings a few improvements and minor fixes:
]r
, ]R
, [r
, [R
(see #1853)vlty
grammar compiler (see #1856, #1839)textidote
grammar compiler (see #1857)g:vimtex_subfile_start_local
(see #1838)Thanks to everyone who reports problems and submits ideas for improving Vimtex. And a special thanks to all PR contributors: @matze-dd, @yongrenjie, and @she30.
Important This is the last version 1 release. The next release brings a major change as hinted in the v1.5 release: full syntax support. See #1799 and #1834 for details.
It's time for a new release that includes both new features and some fixes and improvements to the backend code.
Features and improvements
]n
, ]N
, [n
, and [N
(see #1818).vlty
grammar compiler has had some improvement (see #1821).textidote
grammar compiler has had some improvement (see #1805).g:vimtex_context_pdf_viewer
(see #1817).fixme
LaTeX package (see #1770).Thanks to @openkork, @matze-dd, @mwageringel, @prataffel, and @bratekarate for PR contributions, and to everyone who contributes through opening issues with ideas, bug reports and discussions!
Teaser
For the curious, please note that there is now an ongoing project to embrace full syntax support within vimtex. I hope to finish this before Christmas and to announce it as a major version release (but I make no promises!). See #1799 for details.
This release brings some new features:
:VimtexContextMenu
mapped to <cr>
by default).:help VIMTEX_OUTPUT_DIRECTORY
).g:vimtex_complete_bib.bibliography_commands
g:vimtex_toc_config.indent_levels
VimtexEventInitPre
vimtex#view#view
and vimtex#view#reverse_search
The option g:vimtex_quickfix_latexlog
is now deprecated in favour of the more versatile g:vimtex_quickfix_ignore_filters
.
There was also some maintenance of the code with minor improvements to both code and tests. Several minor issues have been resolved. vim-polyglot no longer bundles a LaTeX plugin, so the note about polyglot in the docs has been removed.