vim-live-latex-preview
vim-live-latex-preview copied to clipboard
E121: Undefined variable: b:Liveupdating when using subdocuments
Whenever I add a new buffer containing a .tex
file that has been included from my main file (where vim-live-latex-preview is running), I get the following error on cursor movement (or save, :w
):
Error detected while processing function UpdatePDF:
line 1:
E121: Undefined variable: b:Liveupdating
Press ENTER or type command to continue
The included file is included using the \include{subdoc.tex}
command, in my main.tex
file. Further, the subdoc.tex
has its first line set to %!TEX root = main.tex
The plugin is installed using Vundle. I experience the same behaviour when loading the plugin with Pathogen. PATH variable has been set: export PATH="${PATH}:${HOME}/.vim/bundle/vim-live-latex-preview/bin/"
I'm not very familiar with vim-scripting but find it baffling that I get this error. The variable in question is clearly stated globally on line 30 of ftplugin/tex/live-latex-review.vim
. The plugin works flawlessly when working in a single document.