摘要: 在VIM中进行文本替换: 1. 替换当前行中的内容: :s/from/to/ (s即substitude) :s/from/to/ : 将当前行中的第一个from,替换成to。如果当前行含有多个 from,则只会替换其中的第一个。 :s/from/to/g : 将当前行中的所有from都替换成to。 阅读全文
posted @ 2017-02-10 13:32 DavidWei0504 阅读(37128) 评论(0) 推荐(1) 编辑