vim Substitution Replacement with interactive approval


Example

:s/foo/bar/c Marks the first instance of foo on the line and asks for confirmation for substitution with bar

:%s/foo/bar/gc Marks consecutively every match of foo in the file and asks for confirmation for substitution with bar