You can count the number of matches using the n
flag in the substitute command. Use the following to show number of times that some-word
matches text in current buffer:
:%s/some-word//gn
You can read all the details on the vim tips wiki
You can count the number of matches using the n
flag in the substitute command. Use the following to show number of times that some-word
matches text in current buffer:
:%s/some-word//gn
You can read all the details on the vim tips wiki