

Using this plugin you can run any process asynchronously, hence it is a useful plugin to have anyway. You can open another terminal and run the following command to compile and generate the PDF: latexmk -pvc -pdf But if you want to do it in vim (that’s the swag right )) you can run the above shell command asynchronously using the asyncrun vim plugin as mentioned in the pre-requisites. Now you need to compile the Latex file then generate the PDF output, here is the magic to automate the process of compiling and generating the changes in the PDF file in realtime.For Mac, I would suggest using Skim which can be installed using brew install skim and follow the above link for setting up the synchronization. I want to use Evince PDF reader for previewing the changes, so I need to add the following line to ~/.latexmkrc file: $pdf_previewer = ‘start evince’ You can customize latexmk according to your need, follow here.I’ve tested it on Mac and Ubuntu and it works great. Install and setup all the items listed above on your respective OS.Evince PDF reader (you can use Preview, mupdf, etc).The following are the pre-requisites for the required setup:

Whenever you make changes to the latex file on the left and save it (:w) the changes reflect in real-time in the pdf on right :) Prerequisites
