Search code examples
vimlatexvim-plugin

vim-latex view document in different folder


I have installed vim-latex. It all works perfectly, but it creates a lot of auxiliary files. I use texlive, which has the option -output-directory=DIR to separate temp files, but the .pdf is put in this DIR too. And, when I use \lv to view the pdf, vim-latex doesn't find the pdf file.

How can I configure \lv in vim-latex to view a pdf in a different folder from the source?


Solution

  • I have the same setup. My simple solution is a symbolic link to the pdf file in DIR.

    On Linux:

    ln -s DIR/project.pdf project.pdf
    

    On Windows:

    mklink project.pdf DIR/project.pdf