Tutorial
Vim (vi Improved)
More on Searching


Search

Substitution (Replace)

Easiest is to go into command mode (with a :), use a line range for the area you wish to replace (1,$ does the whole file).

Normal Mode Indentation

Repeat Last Change in Normal Mode

Command Mode Indentation