【推荐】vim的列值递增、减插件:VisIncr
Wednesday, 14. February 2007, 07:14:35
遇到一个问题
opera是这种格式
*.265.com/*
*.51yes.com/*
*.7town.com/*
*.99count.com/*
*.9v.cn/*
*.a8.com/*
*.aliunion.*
*.all4ad.net/*
*.allyes.com/*
*.atdmt.com/*
*.chanet.com.cn/*
*.cn/adpuba/*
*.cnbeta.com/corporate/*
*.cnzz.com/*
*.com/ad/*
*.com/pagead/
*.doubleclick.net/*
*.edu.cn/ad/*
*.googlesyndication.com/*
*.lele.com/*
而MyIE却是这种格式
url1=*.ad.*
url2=*/ad.*
url3=*.unionsky.*
url4=*.googlesyndication.com/*
url5=*/newhuagg/*
url6=*.newhua.com/help/ad.htm
url7=http://flash.onlinedown.net/*
url8=http://www.onlinedown.net/jsmcc.gif
url9=http://www.ectrust.cn/seal/images/RedSign.jpg
url10=*/images.sohu.com/*
url11=http://images.chinaren.com/cs/sms/alumni3/images/s3.swf
url12=*.265.com/*
url13=*.51yes.com/*
url14=*.7town.com/*
url15=*.99count.com/*
url16=*.9v.cn/*
url17=*.a8.com/*
url18=*.aliunion.*
url19=*.all4ad.net/*
url20=*.allyes.com/*
就需要
1.每列前面加字符串 urlxx=
2.xx该为递增的数字列
1可以用vim的列操作快速完成
2则需要使用一个vim插件VisIncr:
VisIncr : Produce increasing/decreasing columns of numbers, dates, or daynames
http://www.vim.org/scripts/script.php?script_id=670
安装时才发现需要另两个插件支持,
1是最新版的vimbball,最少v18以上
http://www.vim.org/scripts/script.php?script_id=1502
2是calutil.vim,提供
http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs
http://mysite.verizon.net/astronaut/vim/vbafiles/calutil.vba.gz
Calendar Utilities Updated 07/27/04 (v2)
Used by visincr.vim (which is described below), <calutil.vim> provides three calendar-related functions: DayOfWeek(y,m,d), Cal2Jul(y,m,d), and Jul2Cal(julday). DayOfWeek() converts a date to a day of week name, and the other two convert between dates and the Julian day. To extract this plugin, you'll need the new vimball plugin: vimball
选中xx列后:I










