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.
Reverse position of entities in relationship
e.g. a --> b : comment
becomes b --> a : comment
Default mapping: <leader>ure
Reverse the direction of arrow in relationship
e.g. a --> b : comment
becomes a <-- b : comment
Default mapping: <leader>ura
Reverse both the entity position and arrow direction
e.g. a --> b : comment
becomes b <-- a : comment
Default mapping: <leader>urr
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'.
MIT
I recommend the following additional plugins for working with PlantUML files in Vim: