vim-slumlord


Ⅰ. 插件描述

Inline previews for Plantuml sequence diagrams. OMG!

Ⅱ. 基本信息

创建日期:  2016-08-08
使用用户:  3
Github星:  322
插件作者:  Martin Grenfell

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'scrooloose/vim-slumlord'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'scrooloose/vim-slumlord'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'scrooloose/vim-slumlord'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/scrooloose/vim-slumlord

Ⅳ. 文档说明

Oh shit! Lock up your daughters it's ...

███████╗██╗     ██╗   ██╗███╗   ███╗██╗      ██████╗ ██████╗ ██████╗ 
██╔════╝██║     ██║   ██║████╗ ████║██║     ██╔═══██╗██╔══██╗██╔══██╗
███████╗██║     ██║   ██║██╔████╔██║██║     ██║   ██║██████╔╝██║  ██║
╚════██║██║     ██║   ██║██║╚██╔╝██║██║     ██║   ██║██╔══██╗██║  ██║
███████║███████╗╚██████╔╝██║ ╚═╝ ██║███████╗╚██████╔╝██║  ██║██████╔╝
╚══════╝╚══════╝ ╚═════╝ ╚═╝     ╚═╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝╚═════╝ 

Introduction

Slumlord is built atop the wang-hardeningly awesome plantuml.
It gives you a "live preview" of your UML diagrams when you save.

Demo

Installation

First you need Java installed.

Then, install this plugin with your favourite vim plugin manager.

For vundle, just stick this in your
vimrc and smoke it:

Plugin 'scrooloose/vim-slumlord'

Then run :Vundle install

I also recommend installing the
plantuml-syntax plugin as Slumlord
uses this for its syntax file.

Plugin 'aklt/plantuml-syntax'

Usage

Edit a .uml file and enter some plantuml code. When you save it, a preview
will be forcefully inserted/updated at the top of your file!

Note: I have only used this for sequence diagrams - the ASCII output of
plantuml seems to be less than stellar for other diagram types.

添加新评论