-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path0040 - DrawIt.json
91 lines (91 loc) · 7.51 KB
/
0040 - DrawIt.json
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
{
"script_id": "40",
"display_name": "DrawIt!",
"summary": "Ascii drawing plugin: lines, ellipses, arrows, fills, and more!",
"name": "DrawIt",
"script_type": "utility",
"description": "DrawIt is a plugin which allows one to draw lines left, right, up, down, and along both slants. Optionally one may \"cap\" the lines with arrowheads. One may change the horizontal, vertical, slant, and crossing characters to whichever characters one wishes.\n\nIts easy to start and stop DrawIt: use\n\n \\di to start DrawIt and\n \\ds to stop DrawIt.\n\nThe alpha/beta version is available at http://mysite.verizon.net/astronaut/vim/index.html#DRAWIT.\n\nWhen DrawIt has been started you may use the number pad to leave a trail of dashes, vertical bars, etc. The lines will be expanded as needed to accomodate your drawing. DrawIt can also draw boxes and ellipses on a blank-filled area (DrawIt can produce these) which can be useful for drawing boxes around comments.\n\nViart's <drawing.vim> has been merged with the original DrawIt (vimscript#11) (by permission). Use visual-block selection to specify starting and ending positions and a Bresenham line drawing algorithm will be used to connect the two. DrC has written an ellipse-drawing Bresenham-style procedure: again, use the visual block selection to specify a box to contain the ellipse and \\e to trigger the ellipse drawing.\n\nDrawIt incorporates an \"erase\" mode, toggled by the <space> key, that will leave a trail of blanks behind and under the cursor as it is moved by the number pad. Using the shift-arrow keys, DrawIt will move the cursor, expanding lines and inserting spaces as needed, without changing underlying text.\n\nDrawIt is now in the vimball format, which is understood by the new Vim 7.0 release. After decompressing the DrawIt.vba.gz file, edit it with Vim, and then source it (:so %). The components of DrawIt will then be placed where they belong, based on your Vim's runtimepath.\n\nDrawIt records many user options that affect DrawIt and all maps that starting DrawIt creates. When DrawIt is terminated it restores the user's maps and options. DrawIt's number pad maps will expand the file as necessary to accomodate the drawing, automatically.\n\nSupported Features\n <left> move and draw left\n <right> move and draw right, inserting lines/space as needed\n <up> move and draw up, inserting lines/space as needed\n <down> move and draw down, inserting lines/space as needed\n <s-left> move left\n <s-right> move right, inserting lines/space as needed\n <s-up> move up, inserting lines/space as needed\n <s-down> move down, inserting lines/space as needed\n <space> toggle into and out of erase mode\n > draw -> arrow\n < draw <- arrow\n ^ draw ^ arrow\n v draw v arrow\n <pgdn> replace with a \\, move down and right, and insert a \\\n <end> replace with a /, move down and left, and insert a /\n <pgup> replace with a /, move up and right, and insert a /\n <home> replace with a \\, move up and left, and insert a \\\n \\> draw fat -> arrow\n \\< draw fat <- arrow\n \\^ draw fat ^ arrow\n \\v draw fat v arrow\n \\a draw arrow based on corners of visual-block\n \\b draw box using visual-block selected region\n \\e draw an ellipse inside visual-block\n \\f fill a figure with some character\n \\h create a canvas for \\a \\b \\e \\l\n \\l draw line based on corners of visual block\n \\s adds spaces to canvas\n <leftmouse> select visual block\n <s-leftmouse> drag and draw with current brush (register)\n \\ra ... \\rz replace text with given brush/register\n \\pa ... like \\ra ... \\rz, except that blanks are considered\n to be transparent\n\nThank you for ranking DrawIt!\n",
"install_details": "DrawIt! is now distributed as a vimball (see :help vimball)\n\nvim DrawIt.vba.gz\n:so %\n:q\n\nand that's all!\n\n",
"versions": [
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=8798",
"filename": "DrawIt.vba.gz",
"script_version": "10",
"date": "2008-06-12",
"vim_version": "7.0",
"author": {
"user_id": "96",
"user_name": "cec",
"first_name": "Charles",
"last_name": "Campbell",
"email": "[email protected]",
"homepage": "http://mysite.verizon.net/astronaut/index.html"
},
"release_notes": "Fixed a bug with text brushes and ctrl-leftmouse."
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=7777",
"filename": "DrawIt.vba.gz",
"script_version": "9",
"date": "2007-10-10",
"vim_version": "7.0",
"author": {
"user_id": "96",
"user_name": "cec",
"first_name": "Charles",
"last_name": "Campbell",
"email": "[email protected]",
"homepage": "http://mysite.verizon.net/astronaut/index.html"
},
"release_notes": "Bugfix: Johann-Guenter Simon fixed a bug with s:DrawErase()"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=7419",
"filename": "DrawIt.vba.gz",
"script_version": "8",
"date": "2007-07-26",
"vim_version": "7.0",
"author": {
"user_id": "96",
"user_name": "cec",
"first_name": "Charles",
"last_name": "Campbell",
"email": "[email protected]",
"homepage": "http://mysite.verizon.net/astronaut/index.html"
},
"release_notes": "* Changed \"Holer\" to \"Canvas\" and implemented AutoCanvas (which works real well with set ve=all)\n* use ctrl-leftmouse to select visual-blocks\n* floods can now be done inside an ellipse\n* Extended DrawIt to allow users to specify their ellipse drawing with b:di_ellipse\n* DrawIt's maps are now all <buffer> (local) instead of global\n* Bug fixe fixed multi-character user map restoration\n"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=5550",
"filename": "DrawIt.vba.gz",
"script_version": "7",
"date": "2006-04-13",
"vim_version": "7.0",
"author": {
"user_id": "96",
"user_name": "cec",
"first_name": "Charles",
"last_name": "Campbell",
"email": "[email protected]",
"homepage": "http://mysite.verizon.net/astronaut/index.html"
},
"release_notes": "DrawIt now uses autoload feature of vim 7.0 , so vim7.0 is required!\nDrawIt now supports brushes: use visual block to select a brush, then use :SetBrush a (for example). Blanks are transparent. Use shift-leftmouse to draw with the current brush.\nVarious bugfixes.\n"
},
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=1764",
"filename": "DrawIt.tar.gz",
"script_version": "02242003",
"date": "2003-02-24",
"vim_version": "6.0",
"author": {
"user_id": "96",
"user_name": "cec",
"first_name": "Charles",
"last_name": "Campbell",
"email": "[email protected]",
"homepage": "http://mysite.verizon.net/astronaut/index.html"
},
"release_notes": "The latest DrawIt now provides a fill function.\n\\f will ask for a character to fill the figure\nsurrounding the current cursor location. Plus\nI suggest reading :he drawit-tip for those whose\nhome/pageup/pagedown/end keys aren't all working\nproperly with DrawIt.\n"
}
]
}