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
Do you mean the system paste buffer or the vi register?
If you want to use the system paste buffer then you are fine and could do dw"+P
- "
chooses a register, and "+
is the system paste buffer.
Otherwise copy into the non-default register with say "ay
to copy into register a
and then to replace something do dw"aP