set gdefault
When using the :substitute command (AKA :s), substitute all matches in a line instead of just the first.
The /g flag toggles this setting. Append /g to revert to the default behaviour, substituting the first match instead.
Must be logged in to comment.