I need to do a bunch of word replacements in a file and want to do it with a vi command, not an EX command such as :%s///g. I know that this is the typical way
:%s///g
You can use the visual mode of vim for this. e.g. copy a word: ye and then overwrite another one with the copied word: vep
ye
vep