To find and replace a string in VI or VIM you can use this command.
:%s/foo/bar/igc
Powered by Drupal