For instance, if I wanted to a find and replace with strings containing backward or forward slashes, how would this be accomplished in vim?
Examples
Find & Replace is: :%s/foo/bar/g
what if I wanted to find all occurrences of <dog/> and replace it with <cat\>
Same way you escape characters most anywhere else in linuxy programs, with a backslash:
But note that you can select a different delimiter instead:
This saves you all typing all those time-consuming, confusing backslashes in patterns with a ton of slashes.
From the documentation: