Showing posts with label vi. Show all posts
Showing posts with label vi. Show all posts

Aug 3, 2011

vi search and replace

Use "%s/searchstring/replacestring/g

If the searchstring or replacestring has a "/", then place a "\" in front. This is an escape character meaning that any character that follows is taken as its literal meaning.