Ⅰ. 插件描述
A Vim plugin for previewing flow diagram in a browserⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'quafzi/vim-flow-diagram'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'quafzi/vim-flow-diagram'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'quafzi/vim-flow-diagram'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/quafzi/vim-flow-diagram
Ⅳ. 文档说明
Vim Flow-diagram Preview
Intro
A Vim plugin for previewing flow diagram in a browser. It's inspired by 'xavierchow/vim-sequence-diagram'
and flowchart.js.
Installation
- With Pathogen: Place
vim-flow-diagram/in.vim/bundle/. With Vundle:
- Add
Plugin 'quafzi/vim-flow-diagram'to your.vimrc. - Launch
vimand run:PluginInstall
- Add
Usage
File extension
This plugin only applies to files with .flow file extension,
that means it has nearly no performance impact on other file types.
Note: Make sure you have renamed the file name with proper extension.
Keymap for preview
The default keymap is <leader>tf, it brings up a browser window and shows the flow diagram for you.
You can also define your keymap in vimrc.
nmap <unique> <leader>t <Plug>GenerateFlowDiagram License
MIT