VIM文本替换

VIM文本替换 1.替换当前行中的内容: ?/from/to/ (s即substitude)web :s/from/to/ : 将当前行中的第一个from,替换成to。若是当前行含有多个 from,则只会替换其中的第一个。 :s/from/to/g : 将当前行中的全部from都替换成to。 :s/from/to/gc : 将当前行中
相关文章
相关标签/搜索