How does one escape backslashes and forward slashes in VIM find/search?

Posted by stormist on Stack Overflow See other posts from Stack Overflow or by stormist
Published on 2010-03-17T19:14:52Z Indexed on 2010/03/17 19:21 UTC
Read the original article Hit count: 258

Filed under:
|

For instance, if I wanted to a find and replace with strings containing backward or forward slashes, how would this be accomplished in vim? Thank you!

Examples Find & Replace is : :%s/foo/bar/g

what if I wanted to find all occurences of <dog/> and replace it with <cat\>

© Stack Overflow or respective owner

Related posts about vim

Related posts about regex