With insertions, it is very easy to both wipe out a word/section and insert over it, like so
cw
delete until end of word (with space) then go to insert modece
delete until end of word (without space) then go to insert modec3w
delete until end of the next 3 words (with space) then go to insert modect.
delete until before period then go to insert modec$
delete until end of line then go to insert mode
How do I do this with paste operations? Often times I have a line like so
var name = "John Smith"
var name = "Jane Smith"
And I change it to
var name = "John Lee"
var name = "Jane Smith"
And yank (yw
) "Lee", but now if I delete (dw
) "Smith" from "Jane Smith", I no longer have "Lee" in the register to paste back. I know I can use the named registers. Also, I am sure I can use visual mode. However, I figured since this is a pretty common task, there would be a way to use the movement operators (e
, w
, t
/T
, f
/F
,$
,0
) with the paste command to specify what to paste over.