Chinaunix首页 | 论坛 | 博客
  • 博客访问: 50643
  • 博文数量: 15
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 180
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-31 11:18
文章分类
文章存档

2010年(14)

2009年(1)

我的朋友

分类: LINUX

2009-12-31 11:40:21

使用Vi画图

  1. wget -O DrawIt.vba.gz
  2. vi DrawIt.vba.gz(非gz压缩包,采用vi解压[使用vi打开之后会提示输入:s%进行解压])
  3. less ~/.vim/doc/DrawIt.txt(参照帮助文档)
 /===============+============================================================\
 || Starting &   |                                                           ||
 || Stopping     | Explanation                                               ||
 ++--------------+-----------------------------------------------------------++
 ||  \di         | start DrawIt  |drawit-start|                              ||
 ||  \ds         | stop  DrawIt  |drawit-stop|                               ||
 ||  :DIstart    | start DrawIt  |drawit-start|                              ||
 ||  :DIstop     | stop  DrawIt  |drawit-stop|                               ||
 ||              |                                                           ||
 ++==============+===========================================================++
 ||   Maps       | Explanation                                               ||
 ++--------------+-----------------------------------------------------------++
 ||              | The DrawIt routines use a replace, move, and              ||
 ||              | replace/insert strategy.  The package also lets one insert||
 ||              | spaces, draw arrows by using the following characters or  ||
 ||              | keypad characters:                                        ||
 ||              +-----------------------------------------------------------++
 ||        | move and draw left                       |drawit-drawing| ||
 ||       | move and draw right, inserting lines/space as needed      ||
 ||          | move and draw up, inserting lines/space as needed         ||
 ||        | move and draw down, inserting lines/space as needed       ||
 ||      | move cursor left                            |drawit-move| ||
 ||     | move cursor right, inserting lines/space as needed        ||
 ||        | move cursor up, inserting lines/space as needed           ||
 ||      | move cursor down, inserting lines/space as needed         ||
 ||       | toggle into and out of erase mode                         ||
 || >            | insert a > and move right    (draw -> arrow)              ||
 || <            | insert a < and move left     (draw <- arrow)              ||
 || ^            | insert a ^ and move up       (draw ^  arrow)              ||
 || v            | insert a v and move down     (draw v  arrow)              ||
 ||        | replace with a \, move down and right, and insert a \     ||
 ||         | replace with a /, move down and left,  and insert a /     ||
 ||        | replace with a /, move up   and right, and insert a /     ||
 ||        | replace with a \, move up   and left,  and insert a \     ||
 || \>           | insert a fat > and move right    (draw -> arrow)          ||
 || \<           | insert a fat < and move left     (draw <- arrow)          ||
 || \^           | insert a fat ^ and move up       (draw ^  arrow)          ||
 || \v           | insert a fat v and move down     (draw v  arrow)          ||
 || | drag and draw with current brush          |drawit-brush|  ||
 || | drag and move current brush               |drawit-brush|  ||
 ||              |                                                           ||
 ||==============+===========================================================++
 ||Visual Cmds   | Explanation                                               ||
 ||--------------+-----------------------------------------------------------++
 ||              | The drawing mode routines use visual-block mode to        ||
 ||              | select endpoints for lines, arrows, and ellipses. Bresen- ||
 ||              | ham and Bresenham-like algorithms are used for this.      ||
 ||              |                                                           ||
 ||              | These routines need a block of spaces, and so the canvas  ||
 ||              | routine must first be used to create such a block.  The   ||
 ||              | canvas routine will query the user for the number of      ||
 ||              | lines to hold |'textwidth'| spaces.                       ||
 ||              +-----------------------------------------------------------++
 || \a           | draw arrow from corners of visual-block selected region   ||
 || \b           | draw box on visual-block selected region                  ||
 || \c           | the canvas routine (will query user, see above)           ||
 || \e           | draw an ellipse on visual-block selected region           ||
 || \f           | flood figure with a character (you will be prompted)      ||
 || \l           | draw line from corners of visual-block selected region    ||
 || \s           | spacer: appends spaces up to the textwidth (default: 78)  ||
 ||              |                                                           ||
 ++==============+===========================================================++
 || Function and Explanation                                                 ||
 ++--------------+-----------------------------------------------------------++
 ||  :call SetDrawIt('vertical','horizontal','crossing','\','/','X','*')     ||
 ||            set drawing characters for motions for moving                 ||
 ||            and for the ellipse drawing boundary                          ||
 ||  default   motion                                                        ||
 ||  |         up/down,                                                      ||
 ||  -         left/right,                                                   ||
 ||  +         -| crossing,                                                  ||
 ||  \         downright,                                                    ||
 ||  /         downleft, and                                                 ||
 ||  X         \/ crossing                                                   ||
 ++=======================+==================================================++

阅读(2659) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:默认显示详细信息设置

给主人留下些什么吧!~~