Dave Ihnat <[EMAIL PROTECTED]> writes: > From: Dave Ihnat <[EMAIL PROTECTED]> > Subject: Re: Vi: Replace Word sequence > To: [EMAIL PROTECTED] > Date: Tue, 5 Feb 2002 08:17:52 -0600 > Message-ID: <[EMAIL PROTECTED]> > > On Tue, Feb 05, 2002 at 11:41:45AM -0100, john-paul delaney wrote: >> Having previously yanked a word, I now want to replace the word at >> the cursor with the one in memory. What's the best way to do this >> substitution? > > Others have mentioned named buffers, but generally for this kind of work > you don't need it. Just 'yw' to yank the word into the unnamed buffer, > and 'pw' to stuff it back.
Maybe I miss understood the OP but I thought he was asking to do something like this: On a line with cursor represented by [] line1 []pest blak bla blah At that line a cursor posiition we say `yw' Now at a different line: line20 []test blackak a ikfakljlasd What do we say to replace test with pest _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list