You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the surrounding environment command cse can change the wrong \end block when the current environment has an exclamation point in the name. Packages like optidef use an exclamation point in some environment names.
Steps to reproduce
Initial Step: nv -u minimal.vim minimal.tex
In the code LaTeX file below, I put my cursor inside the curly brackets for the line \begin{mini!}. In vim command mode, I press cse and type maxi! (or maxi does not matter).
minimal.vim (Uses vim-plug not vundle) but just loads vimtex
" =========================================================================
" vim-plug Start
" =========================================================================
" Autoinstall vim-plug if it doesn't exist
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'lervag/vimtex'
" All of your Plugins must be added before the following line
call plug#end()
Expected behavior
The begin/end environment block should both change to the new environment name I specify.
Actual behavior
The begin environment block changes as expected. Instead of changing the end environment block, the \end{document} block is changed.
If the environment name does not have the ! (exclamation point), this issue is not observed.
Description
Change the surrounding environment command
cse
can change the wrong\end
block when the current environment has an exclamation point in the name. Packages likeoptidef
use an exclamation point in some environment names.Steps to reproduce
Initial Step:
nv -u minimal.vim minimal.tex
In the code LaTeX file below, I put my cursor inside the curly brackets for the line
\begin{mini!}
. Invim
command mode, I presscse
and typemaxi!
(ormaxi
does not matter).MWE:
minimal.tex
minimal.vim
(Usesvim-plug
notvundle
) but just loads vimtexExpected behavior
The
begin
/end
environment block should both change to the new environment name I specify.Actual behavior
The
begin
environment block changes as expected. Instead of changing theend
environment block, the\end{document}
block is changed.If the environment name does not have the
!
(exclamation point), this issue is not observed.Do you use a latexmkrc file?
Yes but not relevant since not in build mode.
VimtexInfo
The text was updated successfully, but these errors were encountered: