2018年10月24日

Vim统计字符串出现次数

摘要: 关键命令: :%s/pattern//gn 参数说明: % - 指明操作区间,%表示全文本;可以使用1,$或者行区间代替 s – substitute,表示替换 pattern - 要查找的字符串 // - 替代文本应该放在这里,两个斜杠中间没有任何字符表示无替代文本 g – Replace all occurences in the line. Without this argument, re... 阅读全文

posted @ 2018-10-24 14:15 freshair_cn 阅读(22338) 评论(0) 推荐(2) 编辑

导航