2018年8月17日

vim文本替换命令

摘要: 在VIM中进行文本替换: 1. 替换当前行中的内容: :s/from/to/ (s即substitude) :s/from/to/ : 将当前行中的第一个from,替换成to。如果当前行含有多个 from,则只会替换其中的第一个。 :s/from/to/g : 将当前行中的所有from都替换成to。 阅读全文

posted @ 2018-08-17 16:39 九涅 阅读(168) 评论(0) 推荐(0) 编辑

导航