How can you count the number of matches in Vim?
For instance, for the text
<?
How can you count the number of matches in Vim?
For instance, for the text
<?
Count-items describes what you are after.
:%s/<?/whatever/ng
This is the substitution command, but the n flag avoids the actual substitution.