There is a nice feature in Google Chrome when you do a search. It tells you the number of matches there is for the keyword you are searching for. However, in Vim I don\'t se
:vim[grep][!] /{pattern}/[g][j] {file} ...
Vimgrep uses Vim's built-in regex search engine, so you can reuse the patterns from Vim's standard search command. So, I first test the search pattern the normal way using: /{pattern}/
Then enter the following:
:vim /CTRL+r//g %
where CTRL+r/ will insert the last search pattern after the first slash. The status line will display (1 of max), where max is the maximum number of matches for the {pattern}. Then use the :cnext and :cprev to search for the next & previous matches and :cfirst and :clast for the first and last matches. These 4 commands can be remapped to make them faster to execute.