Re: replacing word with last yanked word?
- Steven Dodd wrote:
> Is is possible to accomplish the following in a simpler way:Try "ve" (or some variant) to select the word in Visual mode and then "p".
> 1. Delete a word via "dw"
> 2. Yank a replacement word from some other location by moving there and
> then doing a "yw"
> 3. Return to the site of the deleted word and paste the yanked word via
> Ideally it should work like:
> 1. Yank a replacement word from some location via "yw"
> 2. Move to word to replace, then replace it with "?p"
Alternatively, try "ce<C-R>0<Esc>" or 'de"0p' or '"_dep' .
HTH --Benji Fisher