vi replace all

Shell
  :%s/search_string/replacement_string/g
Source

Also in Shell: