Hi I am trying out vimtex on a multi-file project, and so far I was liking it a lot. However, I just found out that vimtex commands (\lv
, \lt
, \li
, etc) work correctly when used while editing the main file, but have no effect when editing imported files.
Now since most of the work happens in imported files this is quite a big problem. By the way, continuos compilation does not stop when switching to imported files, so I can still see changes in real-time.
I am on ubuntu, using vim 8.0 compiled with --with-features=huge
and using zathura for pdf visualization.
I have tried creating an empty main.tex.latexmain
file and also putting all the imported files in the same folder of main file.
Does anyone know why this happens?
set filetype
(i think) when you have the imported files open, and then check the output ofmap
if the filetype is correctly set to tex or latex.let g:tex_flavor = 'latex'
.tex
, strangelymap
actually showed the correct mapping but they did not work.