VIM search and replace

Find and replace all occurences of item foo for item bar in text
:%s/foo/bar/g

or with escape character
this will replace /foo/bar with /foo/bar2
:%s,foo/bar,foo/bar2,g