Skip to content

A Vim plugin for previewing flow diagram in a browser

Notifications You must be signed in to change notification settings

quafzi/vim-flow-diagram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 vim and run :PluginInstall

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

About

A Vim plugin for previewing flow diagram in a browser

Resources

Stars

Watchers

Forks

Packages

No packages published