vi统计某个匹配出现的次数:%s/hello world/&/gn上句统计hello world 在全文出现的次数。 www.2cto.com 如果要统计从50行到100行,出现的次数,则使用:50,100s/hello world//gn