:%s/word/&/g
x개 바꿨음, x줄에서
라고 나온다.
하지만 실제로 바뀌지는 않는다.
아마 &가 앞의 단어를 나타내므로
자기자신으로 바뀐 듯...
아래 사이트에서 참조했다.
http://textsnippets.com/posts/show/882
From one of the comments in http://www.vim.org/tips/tip.php?tip_id=689
:%s/word/&/g
The above substitutes "word" for itself, and tells you the number of substitutions made.
to vi count vim by sergiovalenzuela on Thu Jan 25 20:44:53 +0000 2007