I can do :%s///g for replacing a string across a file, or :s///
:%s///g
:s///
In vim if you are confused which all lines will be affected, Use below
:%s/foo/bar/gc
Change each 'foo' to 'bar', but ask for confirmation first. Press 'y' for yes and 'n' for no. Dont forget to save after that
:wq