To avoid the substitution, leave the second pattern empty, and add the ānā flag:
:%s/pattern-here//gn
This is described as an official tip.
To avoid the substitution, leave the second pattern empty, and add the ānā flag:
:%s/pattern-here//gn
This is described as an official tip.