-
Notifications
You must be signed in to change notification settings - Fork 409
Description
Hello,
Consider the following:
.vimrc:
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('~/.vim/plugged')
Plug 'lervag/vimtex'
call plug#end()
let g:vimtex_quickfix_method = 'pplatex'professor.tex and student.tex (both exactly same):
\documentclass{article}
\begin{document}
\input{main.tex}
\end{document}main.tex:
\input{section1.tex}
\input{section2.tex}section1.tex
Purposely make an error: miss the closing dollar sign.
$1 + 4 = 5
$1 != 4$section2.tex
Open section2.tex directly via vim section2.tex(Perhaps the above has one extra level of indirection? But in any case it was the minimal example I could come up with in this case)
Open section2.tex directly via vim section2.tex and choose professor.tex as the main file. Try to compile via \ll, pplatex correctly identifies the following error in section1.tex:
./section1.tex|4 error| Missing $ inserted <inserted text> $
When navigating to the quickfix list and pressing enter on this error, one is again presented with an option to choose the main file: professor.tex or student.tex
However, on my machine, neither of these two options are displayed. Please see attached animated gif:
On pressing enter twice, one is presented with a third "Press Enter or type command to continue" option. However, pressing enter does nothing here. On pressing Ctrl-C, there is an error:
Error detected while processing /home/TryerGit/.vim/plugged/vimtex/ftplugin/tex.vim:
line 25:
Interrupted(Q1) It appears to me that on opening section2.tex and having chosen the main file as professor.tex, navigating to an error in section1.tex should not ask the user again to choose the main file -- it should automatically use professor.tex as the main file.
(Q2) Even if it is asked, the options don't seem to be displayed on my machine -- please see gif above.
Thank you.