How to quickly get the word count under the cursor in Vim?
I want to know how many times a file appears in a Vim file ...
I am currently doing this:
:%s/{word}//gn
Search the entire file for a word and replace it with nothing, specifying the account.
Is there a faster way to achieve this?
So basically I get the word under the cursor and the command execution should give the count.
+3
source to share
2 answers