If the command is followed by a g, as in s/x/y/g, all matches in the range are substituted.
g/regexp/ commandv/regexp/ command If the range contains (g) or does not contain (v) a match for the expression, set dot to the range and run the command.