I tried for hours to use vimtex to compile a document that require XeLaTeX. As the vimtex documentation say, the first line of my tex document is
%! TEX program = xelatex. However, I always get the following error:
/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.sty|43 error| Fatal fontspec error: "cannot-use-pdftex"
So it look like pdflatex is still used. Thank in advance to anyone that can help me. Note that building a document that only require pdflatex work perfectly, and that the document I try to build with xelatex is just a hello world using a class that need xelatex and that compile with
xelatex file.txt command in a terminal.