I understood that
:%s/foo/bar
replaces the first occurrence of 'foo' with 'bar' in each line and repeats the process for all lines.
My requirement is to stop skimming through lines after the replace is done in the first line where the match is found.
Please help me with this