I have a long string with many commas. I would like to know the number of commas per line. How can I do this with vim?
Also, I want to do this for non-comma characters.
Specifying the line number and character should give me the number of occurrences of this character.
eg:
:charmap/50/,
should give me the number of commas on line 50.
source share