9
I have a long line with many commas. I would like to know the number of commas in a line. How can i do this using vim?
Also, I want to do this for characters other than comma.
Specifying the line number and a character should give me the number of occurrences of that character.
for example :
:charmap/50/,
should give me the number of commas in line 50.