vim-latex-preview
vim-latex-preview copied to clipboard
Latex Preview Plugin for Vim
Vim Latex Previewer
Dependencies
- vim
- pdfviewer
- Evince (Works on Mac)
- Mupdf
- Okular
- pdflatex (or another latex engine).
For async support (Compiling in background)
- vim version >= 8.00
- asyncrun.vim
Installation
Just like any other vim plugin
Usage
Starting the preview
To start the preview mode:
:StartLatexPreview
This will compile your latex document and open it in one of the above pdf viewers.
After every save the previewer will be refreshed.
Choosing a previewer
Stick the following in your vimrc, replacing
let g:latex_pdf_viewer="<previewer>"
Choosing a latex engine
By default pdflatex will be used. Replace
let g:latex_engine="<engine>"
Cleaning generated files
By default we don't remove LaTeX generated files: .log, .out and .aux file. To remove them automatically, set to 1
let g:latex_preview_clean = 1