Almost what I want -- One problem is that "foo" is not always "foo" for me. It would change, as I'm changing a bunch of different words to my single target word. The other problem is that your method wipes "0. cwbar<Esc> puts "foo" into "0 but what I really want is to ``replace current word with what's already in my "0 without overwriting my "0 ''
Chuck -----Original Message----- From: Aaron Griffin [mailto:[EMAIL PROTECTED] Sent: Thursday, December 07, 2006 9:47 PM To: Chuck Mason Cc: [email protected] Subject: Re: cw without losing "0 On 12/7/06, Chuck Mason <[EMAIL PROTECTED]> 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? If I understand you right, here's what I do in that situation. Say I want to replace all "foo" with "bar" like that... /\<foo\> find the first "foo" cwbar<esc> n . "repeat n . "repeat etc etc etc
