Convert pdf file to plain text, cache it and open it quickly in vim using pdftotext.
Vim script
Switch branches/tags
Nothing to show
Clone or download
rhysd Merge pull request #11 from zahyur/master
Escape the filepath, which prevented files containing spaces from opening (Fixes #9)
Latest commit 7404f40 Jul 22, 2016

Convert pdf file to plain-text file, cache it and open it in Vim.


  • :Pdf path/to/pdf-file converts, caches and opens the pdf-file.

  • :Unite pdf/history displays histories you have ever opened.


pdftotext command must have been installed in advance to convert a pdf file and unite.vim is required to use a unite interface.

Auto Conversion

When a pdf file is edited with :edit or :read, conversion from pdf to txt is automatically executed and open the text file instead of pdf file. You must set g:pdf_convert_on_edit or g:pdf_convert_on_read to 1 to enable these features.

Read doc/open-pdf.txt to get more information.