Closed switzel closed 1 month ago
First, a friendly warning: You are using an old Ubuntu on which the Vim version is also old. I am quite close to only supporting Vim version 9.1.
I'm 90% sure that this is within the responsibility of vimtex, if not please tell me.
When I autoindent (
=
) a (la)tex file involving | the following lines pick up an extra indentation. The left symbol can be replaced by other things but apparently the\right|
does not "close" it.
The problem is that the bar symbol |
is very hard to match and that it is not really suitable for use as a delimiter. In your case, it will work if you instead use the \rvert
, and this is the proper solution here. See e.g. this tex.stackexchange.com question where the answer should be elucidating.
Description
I'm 90% sure that this is within the responsibility of vimtex, if not please tell me.
When I autoindent (
=
) a (la)tex file involving $\left. \right|$ the following lines pick up an extra indentation. The left symbol can be replaced by other things but apparently the\right|
does not "close" it.Steps to reproduce
Put the code
into a file minimal.tex. Type
gg=G
. It gets indented as(actually it is indented already while typing). (Github won't let me upload a .tex file.)
Expected behavior
The expected indentation is
Actual behavior
The indentation vimtex produces is
Do you use a latexmkrc file?
No
VimtexInfo