vim draw picture plug in

本文介绍了一款Vim插件DrawIt的主要功能及使用方法。该插件允许用户通过简单的键盘指令绘制各种图形元素,如箭头、椭圆等,并提供了丰富的操作选项,包括移动、填充和选择等。支持方向键进行绘图操作,空格键切换橡皮擦模式,以及利用视觉块区域绘制特定形状。

http://www.vim.org/scripts/script.php?script_id=40


Its easy to start and stop DrawIt: use

   \di to start DrawIt and
   \ds to stop  DrawIt.



Supported Features 
   <left>       move and draw left 
   <right>      move and draw right, inserting lines/space as needed 
   <up>         move and draw up, inserting lines/space as needed 
   <down>       move and draw down, inserting lines/space as needed 
   <s-left>     move left 
   <s-right>    move right, inserting lines/space as needed 
   <s-up>       move up, inserting lines/space as needed 
   <s-down>     move down, inserting lines/space as needed 
   <space>      toggle into and out of erase mode 
   >            draw -> arrow 
   <            draw <- arrow 
   ^            draw ^  arrow 
   v            draw v  arrow 
   <pgdn>       replace with a \, move down and right, and insert a \ 
   <end>        replace with a /, move down and left,  and insert a / 
   <pgup>       replace with a /, move up   and right, and insert a / 
   <home>       replace with a \, move up   and left,  and insert a \ 
   \>           draw fat -> arrow 
   \<           draw fat <- arrow 
   \^           draw fat ^  arrow 
   \v           draw fat v  arrow 
   \a           draw arrow based on corners of visual-block 
   \b           draw box using visual-block selected region 
   \e           draw an ellipse inside visual-block 
   \f           fill a figure with some character 
   \h           create a canvas for \a \b \e \l 
   \l           draw line based on corners of visual block 
   \s           adds spaces to canvas 
   <leftmouse>  select visual block 
<s-leftmouse>  drag and draw with current brush (register) 
   \ra ... \rz  replace text with given brush/register 
   \pa ...      like \ra ... \rz, except that blanks are considered 
                to be transparent



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值