vi count the number of characters

For example, I have a log file. The characters that match the rules in my file are yes. I want to find the number of yes characters in this abc.log file. How to find it, as follows:

:%s/yes//gn

 Result: 1501307 matches on 1501307 lines

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326967839&siteId=291194637