I'm writing LaTeX code which has a lot of sections like this
\begin{definition}
blah blah blah ...
...
\end{definition}
In normal text, I'm very fond of gq]
to rewrap everything nicely. Inside a block section like the above, that wraps the end command too, which I'd rather keep on a separate line.
Is there a way to tell vim that a line starting \end
ends a paragraph? Or is there another formatting command I can use (I have <F8>
mapped to gq]
, I don't mind redefnining it?