统计vim 中配匹到的个数

:%s/xxx//gn关键是最后的n,代表只报告匹配的个数,而不进行实际的替换。

 

好像与重定向有点关系

 

h: redir

原文地址:https://www.cnblogs.com/vimmer/p/2610430.html