This command:
:s/foo/bar/g
substitutes each occurrence of foo with bar on the current line.
fool around with a foodie
becomes
barl around with a bardie
If you leave off the last /g, it will only replace the first occurence on the line. For example,
:s/foo/bar
On the previous line wou...