sponsor Vim development Vim logo Vim Book Ad

tex_compile.vim : A compile plugin for LaTeX

 script karma  Rating 0/0, Downloaded by 110  Comments, bugs, improvements  Vim wiki

created by
Yangqin Fang
 
script type
ftplugin
 
description
Usage:
In you tex source file, in noraml mode, press <F2> to run pdflatex, press <F6> to run xelatex, press <F8> to compile bibtex or biblatex.
In case you split your project with several chapters, for example, chapter1.tex, chapter2.tex, ..., in any chapter, you press the shortcuts, it will find the main tex file automatically.

https://github.com/fangyq09/VimTeXtric
 
install details
Put the latexmk.vim in the dir ~/.vim/compiler/, and put the compiler.vim in the dir ~/.vim/ftplugin/tex/

On linux, you need zathura pdf to be installed, and for the backward search, you should put the following two commands into ~/.config/zathura/zathurarc:
set synctex true
set synctex-editor-command "gvim --servername GVIM10000 --remote-silent +exec\ %{line} %{input}"

On windows you need SumatraPDF to be installed, and it should be in PATH environment variable, or you alter the SumatraSynctexForward(file) function in the vimscript.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim.7z 1.2 2023-04-21 7.0 Yangqin Fang fixed a bug, and make it support both bibtex and biblatex
vim.7z 1.1 2023-04-08 7.0 Yangqin Fang Initial upload
ip used for rating: 3.141.30.162

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github