有没有办法使用:g来计算Vim中的匹配数目?


10

我知道这可行:

:%s/<string>//gn

但是使用替换命令进行计数而不是全局计数似乎有些奇怪。

Answers:



By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.