# Replace all matching patterns :s%/PatternToReplace/Replacement # Replace one matching pattern at a time :s/PatternToReplace/Replacement