To search and replace text in vim, change to command mode and you can do this;
The above code will look for all the ‘
search' text in the current buffer and change them to ‘
replace' text. The ‘
gc' tells vim to look though the entire buffer and confirm the change before it replaces the text, if you leave out the ‘c’ it will change without needing a user’s confirmation.