Simple plugin for generating PDF from LaTeX (using MacTex) and previewing it (with Mac OS X Preview
).
Just clone the repo to Vim bundle dir.
cd ~/.vim/bundle
git clone [email protected]:tomaszwojcik/vim-latex-preview.git
By default preview is launched with <leader>pp
.
nnoremap <leader><shortcut> :call latexpreview#PreviewLatexAsPdf()<CR>
- where<shortcut>
is your shortcut for invoking previewlet g:latex2pdf_command = 'pdflatex'
- command for generating PDFlet g:latex_preview_command = 'open -a Preview'
- preview program to be launched
Same as Vim's license. Feel free to change behavior, add new preview programs and so on. Lots of love for pull requests with improvements.