免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1789 | 回复: 0
打印 上一主题 下一主题

使用Vi画图(DrawIt插件) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-31 11:40 |只看该作者 |倒序浏览
使用Vi画图
  • wget -O DrawIt.vba.gz http://www.vim.org/scripts/download_script.php?src_id=8798
  • vi DrawIt.vba.gz(非gz压缩包,采用vi解压[使用vi打开之后会提示输入:s%进行解压])
  • 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 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 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                                                   || ++=======================+==================================================++
                   
                   
                   

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/109334/showart_2136288.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP