Ⅰ. 插件描述
Live markdown preview within [neo]vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'vimlab/mdown-vim-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'vimlab/mdown-vim-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'vimlab/mdown-vim-please-everybody'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vimlab/mdown.vim
Ⅳ. 文档说明
# mdown.vim
Currently unmaintained: See Issue #2.
Neovim plugin that brings simple, but efficient, markdown preview within VIM.
It uses neovim's remote plugin feature to glue up together [markdown-it][],
[tiny-lr]() and vim's markdown buffers. Most of the plugin functionality is
implemented in node (see ./rplugin/node/mdown.js).
It just defines two functions and one command to render, preview and refresh
markdown files from buffers.
:Mpreview to render and open a new webpage. This command is only available
within Markdown buffers.
The plugin is also configured to re-render and trigger a LiveReload refresh
while typing (see ./plugin/mdown.vim).
Install
Install this plugin using your favorite plugin manager, or manually by
extracting the files in your ~/.vim or ~/.config/nvim directory.
Make sure to run npm install within the plugin directory when installed. Some
package managers allows you to perform a post-install hook, like vim-plug or
neobundle.
Example Using [vim-plug]
Plug 'neovim/node-host', { 'do': 'npm install' }
Plug 'vimlab/mdown.vim', { 'do': 'npm install' }
Once installed, make sure to "update remote plugins" by running :UpdateRemotePlugins
Example
