Hmm, you should just not use :substitute for that. Use the right search
pattern, then record a change into a register (so you can repeat it).
You can also record two or more different changes, and use the one you
like with @a, @b, etc. And undo if it wasn't the right one and retry at
the same position. Then finally hit "n" to go to the next match.
There isn't really a good reason to expand the functionality of
:substitute to make it even more complex. It is really meant for bulk
changes, not complex stuff.
--
If they don't keep on exercising their lips, he thought, their brains
start working.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///