-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathvenn.txt
112 lines (81 loc) · 3.55 KB
/
venn.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
VENN *venn*
VENN REFERENCE MANUAL~
by jbyuki~
venn offers utilities to simply draw ASCII diagrams using
the box-drawing characters.
https://en.wikipedia.org/wiki/Box-drawing_character
Type |gO| to see the table of contents.
======================================================
EXAMPLES
The following diagrams were all drawn using venn. This shows
the possibilities offered by the plug-in.
>
If some characters are not displayed correctly make sure
to install a font which supports Unicode special box
characters
<
┌───┐
└───┘
┌─┐ ┌─┐ ┌──────┐ ┌─┐ ▲ ┌─┐
│a├─►│b│ │ loop │◄┐ │ │◄─┼─►│ │
└─┘ └─┘ └────┬─┘ │ └─┘ ▼ └─┘
└───┘ ┌───┐
└───┘
┌────┐╔══════╗┌───┐
╔═╗ ┏━┓ ┌─┐ │████│║ venn ║│ v │
║ ╟────►┃ ┠───►│ ├──► │████│╚══════╝│ i │
╚═╝ ┗━┛ └─┘ │████│┌──────┐│ m │
└────┘└──────┘└───┘
======================================================
USAGE
1. `set virtualedit=all` or `set ve=all` . This allows to
freely move the cursor inside the buffer. (see
|virtualedit|).
2. Enter in Visual Block mode using <C-v>. Select the
region where the box should be.
3. Invoke |:VBox|. This will draw a rectangle. In case, it
has a width or a height of 1, it will draw a line.
Notes:
To avoid switching to |virtualedit| everytime a text file is
opened, please use a vim |modeline|. For example:
>
vim:ve=all:cursorcolumn:cursorline:
<
This should be the last line of the text file.
======================================================
COMMANDS
*:VBox*
:VBox
Draw a single line box or arrow.
*:VBoxD*
:VBoxD
Draw a double line box or arrow.
*:VBoxH*
:VBoxH
Draw a heavy line box or arrow.
*:VBoxO*
:VBoxO
Draw a single line box or arrow. It tries
to give the impression the box is drawn
over existing characters.
With |:VBox|:
┌───┐
│ ┌───┐
└─│─┘ │
└───┘
With |:VBoxO|:
┌───┐
│ ┌─┼─┐
└─┼─┘ │
└───┘
*:VBoxDO*
:VBoxDO
Draw a double line box or arrow. Draw
over.
*:VBoxHO*
:VBoxHO
Draw a heavy line box or arrow. Draw over.
*:VFill*
:VFill
Fill the area with a solid color.
vim:tw=58:ts=8:ft=help:norl: