Linux vim替换命令

#替换每一行的第一个a
:%s/a/b/
#全部替换
:%s/a/b/g
#替换/时需要转义"\/"

posted @ 2018-08-15 11:13  自强·  阅读(11205)  评论(0编辑  收藏  举报