Vi Search and Replace Trick

liunx

Guest
The general Vi trick to search and replace a word is <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->:%s/old/new/g<!--c2--></div><!--ec2--><br /><br />But I am trying to search and replace a string with several characters like: <br /><br /><a href="http://home.dreamincode.net" target="_blank">http://home.dreamincode.net</a> with <a href="http://forums.dreamincode.net" target="_blank">http://forums.dreamincode.net</a><br /><br />Vi won't let me just put a // because that is a command by itself.<br /><br />Help please
</div>
 
Top