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