Code Monkey home page Code Monkey logo

plantuml-previewer.vim's Introduction

Plantuml Previewer Vim

Vim/NeoVim plugin for preview PlantUML

image

Dependencies

Usage

  1. Start editing plantuml file in Vim
  2. Run :PlantumlOpen to open previewer webpage in browser
  3. Saving plantuml file in Vim, then previewer webpage will refresh

Commands

PlantumlOpen

Open previewer webpage in browser, and watch current buffer

PlantumlStart

Like PlantumlOpen, but won't open in browser

PlantumlStop

Stop watch buffer

PlantumlSave [filepath] [format]

Export uml diagram to file path
Available formats

png, svg, eps, pdf, vdx, xmi, scxml, html, txt, utxt, latex

Example:

:e diagram.puml

:PlantumlSave
:PlantumlSave diagram.png
:PlantumlSave diagram.svg

Variables

g:plantuml_previewer#plantuml_jar_path

Custom plantuml.jar file path

If plant uml was installed by homebrew, you can add the following code to your .vimrc to use the version installed by homebrew:

au FileType plantuml let g:plantuml_previewer#plantuml_jar_path = get(
    \  matchlist(system('cat `which plantuml` | grep plantuml.jar'), '\v.*\s[''"]?(\S+plantuml\.jar).*'),
    \  1,
    \  0
    \)

g:plantuml_previewer#save_format

:PlantumlSave default format
Default: 'png'

g:plantuml_previewer#viewer_path

Custom plantuml viewer path
The plugin will copy viewer to here if the directory does not exist
And tmp.puml and tmp.svg will output to here

Related

plantuml-previewer.vim's People

Contributors

bravoecho avatar dependabot[bot] avatar dylan-chong avatar kibafox avatar seagoj avatar toruiwashita avatar ubmarco avatar weirongxu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.