Vim : how do I search and replace text

By | September 16, 2011

Do the following to find and replace text string in a whole file using the Vi text editor :

1. Enter in command mode by typing ” :

2. Your command should look like this :

NOTE : To search & replace a string containing slashes ” / “, use a coma ” , ” instead :




Be Sociable, Share!