Ⅰ. 插件描述
Convert pdf file to plain text, cache it and open it quickly in vim using pdftotext.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rhysd/open-pdf-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rhysd/open-pdf-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rhysd/open-pdf-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rhysd/open-pdf.vim
Ⅳ. 文档说明
Convert pdf file to plain-text file, cache it and open it in Vim.
Commands
:Pdf path/to/pdf-fileconverts, caches and opens the pdf-file.:Unite pdf/historydisplays histories you have ever opened.
Dependency
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.