On Thu 7-Dec-06 11:33pm -0600, Chuck Mason wrote:

> Does anyone know of a shorter, happier way to perform (in normal mode)
> Pdwbyw 
>  
> That is, replace the current word with whats in "0 but leave "0 alone?

    diw"0P

Your approach doesn't appear to work.  For example, suppose
you have a sentence:

    This is the Vim Editor.

and both the unnamed and 0 registers contain Gvim.

Place the cursor on the 'i' in Vim, making Vim the current
word, and type Pdwbyw and you get:

    This is the VGviEditor.

and "0 is changed to: VGviEditor
Also "0 is not always the same as the unnamed register -
which would give even more strange results.

If instead you typed diw"0P you get:

    This is the Gvim Editor

and "0 is unchanged.

-- 
Best regards,
Bill

Reply via email to