- 论坛徽章:
- 0
|
使用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 |
|