Here is a minimal .tex file:
\begin{document}
\begin{itemize}
\item Here is an equation:
\begin{align*}
x = y
\end{align*}
\item Here is another item
\end{itemize}
\end{document}
I would like to make the second item bold. If I put my cursor before the H and put
\textbf{
while in insert mode, the line de-indents as soon as the bracket is put in place.
My question is how can I prevent this behavior? I would like no indentation.
The problem seems to be the equation environment. If that is removed then I get the desired behavior.
Here is my .vimrc:
set nocompatible
filetype plugin indent on
syntax enable
The behavior goes away if I remove
filetype plugin indent on
but then I also lose some other desired functionality.
Ultimately, I will be using this with https://github.com/lervag/vimtex. So solutions involving that plugin would be welcome as well.