I think it works like a regular expression substitution in vi where you know what your desired context is
You might not want to do
:1,$s/foobar/raboof/
but rather something like
:1,$s/my context foobar more context/my context raboof more context/
There has to be a larger stretch in which the edit in question occurs, all chemically mediated of course.