Ⅰ. 插件描述
Markdown previewer for vimmer.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'mattn/mkdpreview-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'mattn/mkdpreview-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'mattn/mkdpreview-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/mattn/mkdpreview-vim
Ⅳ. 文档说明
MkdPreview
Markdown Previewer for Vimmer.
Introduction
Vim can't dispaly characters which have them glyphs for each like web browser.
So unfortunately, vimmer can't preview markdown text over editing on terminal.
This is a GUI application which can display preview of markdown.
This plugin support:
- Markdown
- reStructuredText
- Textile
Installation
Just simple! Copy or git-clone mkdpreview-vim into your ~/.vim/bundle.
# cd /path/to/your/.vimrc/bundle
# git clone https://github.com/mattn/mkdpreview-vim
This require following third party modules or vim plugins.
- python (2.7 or later) http://python.org/
- PyQt4 http://www.riverbankcomputing.co.uk/software/pyqt/download
- Markdown in Python http://www.freewisdom.org/projects/python-markdown/
- curl command http://curl.haxx.se/libcurl/
- webapi-vim http://github.com/mattn/webapi-vim
Usage
:MkdPreview!
If you have previewer already, Just type:
:MkdPreview
:MkdPreview! command install BufWritePost hook for current buffer. Then preview will be updated just to do :w.
Screenshot

Author
Yasuhiro Matsumoto <mattn.jp@gmail.com>