Count a particular word in vim

I found (http://codesnippets.joyent.com/posts/show/882) the following command to count a particular word in vim:

:%s/word/&/g

I don’t no wheter this command is the best or not, but it works.

This was posted 12 months ago. It has 0 notes.