All Projects → xavierchow → vim-sequence-diagram

xavierchow / vim-sequence-diagram

Licence: other
A Vim plugin for previewing sequence diagram in a browser

Programming Languages

Vim Script
2826 projects
HTML
75241 projects

Projects that are alternatives of or similar to vim-sequence-diagram

VimConfig
Configuration files for Vi-IMproved.
Stars: ✭ 23 (-56.6%)
Mutual labels:  vimrc, vim-plugins
Local vimrc
Per project/tree configuration plugins
Stars: ✭ 118 (+122.64%)
Mutual labels:  vimrc, vim-plugins
Dotfiles
💾 Ian's dotfiles, utils, and Zsh/Vim/tmux configs
Stars: ✭ 554 (+945.28%)
Mutual labels:  vimrc, vim-plugins
dotfiles
💻 My dotfiles: .vimrc, .gitconfig, .bash_profile, etc
Stars: ✭ 27 (-49.06%)
Mutual labels:  vimrc
vim config
🔰 好好编程的vim配置
Stars: ✭ 17 (-67.92%)
Mutual labels:  vimrc
dotfiles
My dotfiles
Stars: ✭ 22 (-58.49%)
Mutual labels:  vimrc
PenTerm
Terminal config for pentesters.
Stars: ✭ 20 (-62.26%)
Mutual labels:  vimrc
rc.d
🛠 My rc files and other configs. Includes: Bash, Zsh, Vim, Tmux, Git, Terminal (macOS), VS Code
Stars: ✭ 32 (-39.62%)
Mutual labels:  vimrc
sphinx-wavedrom
A sphinx extension that allows including wavedrom diagrams by using its text-based representation
Stars: ✭ 26 (-50.94%)
Mutual labels:  diagram
react-direct-graph
📏 React component for drawing direct graphs with rectangular (non-curve) edges.
Stars: ✭ 25 (-52.83%)
Mutual labels:  diagram
cloudgram
Generate diagrams for your cloud architecture using code
Stars: ✭ 68 (+28.3%)
Mutual labels:  diagram
go-vim-install
Easy environment setup for Vim addicts and go developers
Stars: ✭ 68 (+28.3%)
Mutual labels:  vim-plugins
vim-mypy
Vim plugin for executing Python's optional static type checker MyPy (http://mypy-lang.org/)
Stars: ✭ 89 (+67.92%)
Mutual labels:  vim-plugins
dotfiles
❤ ~/.🛠🐈 the daily jam 🍞🥜🍇🍞
Stars: ✭ 55 (+3.77%)
Mutual labels:  vimrc
OrgChart
Organization chart layout library
Stars: ✭ 16 (-69.81%)
Mutual labels:  diagram
spie
轻量级、无依赖的圆头效果环形图控件
Stars: ✭ 36 (-32.08%)
Mutual labels:  diagram
dotfiles
My personal quirks quantified in text form
Stars: ✭ 68 (+28.3%)
Mutual labels:  vimrc
dotfiles
Personal set of vim, zsh, git configs and scripts.
Stars: ✭ 23 (-56.6%)
Mutual labels:  vimrc
typedoc-plugin-mermaid
A plugin for TypeDoc that generates graphs for mermaid.js diagrams by @mermaid annotation.
Stars: ✭ 18 (-66.04%)
Mutual labels:  diagram
bian
The Banking Industry Architecture Network e.V. (BIAN) model in Archimate 3
Stars: ✭ 48 (-9.43%)
Mutual labels:  diagram

Vim Sequence-diagram Preview

Intro

A Vim plugin for previewing sequence diagram in a browser. It's inspired by vim-markdown-preview and JS Sequence Diagram.

JS Sequence Diagram is awesome! And its online editing feature is cool as well. However, there're 2 drawbacks:

  1. Online editing is opt to be lost, especially with an unexpected browser fresh or history-back.
  2. You have to copy&paste between the online web page and your text editor repeatedly for updating/preview.

This vim plugin helps you handle the issues above, write your sequence diagram description in vim, press a hotkey to preview it in browser! Screenshot

Installation

  • With Pathogen: Place vim-sequnce-diagram/ in .vim/bundle/.
  • With Vundle:
    • Add Plugin 'xavierchow/vim-sequence-diagram' to your .vimrc.
    • Launch vim and run :PluginInstall

Usage

File extension

This plugin only applies to files with .seq or .sequence 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>t, it brings up a browser window and shows the sequence diagram for you. You can also define your keymap in vimrc.

nmap <unique> <leader>t <Plug>GenerateDiagram 

JS Sequence Diagram Theme

Currently there're mainly 2 themes with js-sequence-diagrams, hand drawn and simple. You can add the following line into your vimrc for using hand drawn theme, set it to 0 or remove the line for simple theme.

let g:generate_diagram_theme_hand = 1

Download as SVG or PNG

Use the buttons at the bottom to download the diagram as SVG or PNG.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].