Open yaohunzhanyue opened 4 years ago
Vim/NeoVim plugin for preview PlantUML
:PlantumlOpen
Open previewer webpage in browser, and watch current buffer
Like PlantumlOpen, but won't open in browser
PlantumlOpen
Stop watch buffer
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
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:
.vimrc
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'
:PlantumlSave
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
tmp.puml
tmp.svg
Plantuml Previewer Vim
Vim/NeoVim plugin for preview PlantUML
Dependencies
Usage
:PlantumlOpen
to open previewer webpage in browserCommands
PlantumlOpen
Open previewer webpage in browser, and watch current buffer
PlantumlStart
Like
PlantumlOpen
, but won't open in browserPlantumlStop
Stop watch buffer
PlantumlSave [filepath] [format]
Export uml diagram to file path
Available formats
Example:
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:g:plantuml_previewer#save_format
:PlantumlSave
default formatDefault: '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
andtmp.svg
will output to hereRelated