Q:

Vim - Step through search and replace results

Is it possible to step through the results of a search and replace to ensure that no unwanted modifications were made to your code in a boldly-executed, entire-file search and replace?
Vim throws up the status message:
"*X* substitutions on *Y* lines"

and I'm curious if there's a  key or command to step through each of those substitutions and do a quick check to make sure you haven't shot yourself in the foot with an unexpected string match. I am new to Vim.

A:

From http://vim.wikia.com/wiki/Search_and_replace, 
:%s/foo/bar/gc
    Change each 'foo' to 'bar', but ask for confirmation first.

