Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.33 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.33 KB

vim-plantuml-shortcuts

This vim plugin provides a set of vim functions and mappings useful when working with PlantUML files. It currently consists of commands to reverse arrow direction, entity order, or both. All commands accept ranges.

Functions

:PlantumlToolsReverseEntity

Reverse position of entities in relationship e.g. a --> b : comment becomes b --> a : comment

Default mapping: <leader>ure

:PlantumlToolsReverseArrow

Reverse the direction of arrow in relationship e.g. a --> b : comment becomes a <-- b : comment

Default mapping: <leader>ura

:PlantumlToolsReverseRelation

Reverse both the entity position and arrow direction e.g. a --> b : comment becomes b <-- a : comment

Default mapping: <leader>urr

Installation

Assuming you use vim-plug, Pathogen, or equivalent, add the following to your .vimrc:

Plug 'kjhaber/vim-plantuml-shortcuts'

To disable the default mappings, add the following line as well:

let g:vim_plantuml_tools_map_keys = 0

Reload vim and open a file of type 'plantuml'.

License

MIT

Notes

I recommend the following additional plugins for working with PlantUML files in Vim: