:%s/old/new/g searches for ALL occurrences in the ENTIRE file ('%' means all lines, 'g' means all occurrences per line). :s/old/new only affects first occurrence on current line. :s/old/new/g affects all occurrences on current line only. :%s/old/new affects first occurrence on all lines.