Vi/Vim: search and replace.
To repl [old_string] with [new_string]...


:%s/[old_string]/[new_string]/gc



'g' option is for global, 'c' option is for vi/vim to ask for confirmation for every matched string.

References:
http://vim.wikia.com/wiki/Search_and_replace