search for forward slash vim code example Example 1: search and replace vim forward slash /(<- the prompt)\/\* Example 2: search and replace vim forward slash :%s/<dog\/>/<cat\\>