vim
zzjjzzgggg
这个作者很懒,什么都没留下…
展开
-
vim note
匹配次数修饰符:* >=0\+ >=1{2,} >=2 统计匹配次数::%s/<pattern>//gn 删除匹配行::g/pattern/d 删除重复行::sort:g/^\(.\+\)$\n\1/d...原创 2012-10-23 11:44:20 · 278 阅读 · 0 评论 -
vim inserting increasing number
Substitute with ascending numbersSuppose you want to replace each occurrence of "abc" with "xyz_N" where N is an ascending number (xyz_1, xyz_2, xyz_3, and so on).One approach uses the follo...原创 2013-04-12 21:26:52 · 1444 阅读 · 0 评论 -
vim spell check
http://tips.webdesign10.com/vim/how-use-vims-spellchecker If you are using Vim in the terminal, or prefer to type, you can turn on spellchecking in Vim with the command :set spell and turn of...原创 2013-11-21 15:45:19 · 1148 阅读 · 0 评论 -
add and subtract
Add and subtract a number see Section 26.2http://vimdoc.sourceforge.net/htmldoc/usr_26.html原创 2014-01-05 22:32:46 · 6486 阅读 · 0 评论 -
vim 替换
三、替换变量在正规表达式中使用 \( 和 \) 符号括起正规表达式,即可在后面使用\1、\2 等变量来访问 \( 和 \) 中的内容。使用例/\(a\+\)[^a]\+\1 " 查找开头和结尾处a的个数相同的字符串," 如 aabbbaa,aaacccaaa,但是不匹配 abbbaa:s/\(http:\/\/[-a-z\._~\+%\/]\+\)/<a href="\...原创 2013-11-03 14:52:16 · 284 阅读 · 0 评论