If you're going to use
vi for this then instead of using a / character for separations...use another character such as =
For example...instead of
:%s/\/dir1\/dir2\/image.gif/<new file>
use:
:%s=/dir1/dir2/image.gif=<new file>
or
:1,$ s=/dir1/dir2/image.gif=<new file>=g
Using the = for the separator will avoid having to specify the backslash to tell the substitution that the / is part of the substitution.
