[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Vi: Replace Word sequence



Dave Ihnat <ignatz dminet com> writes:

> From: Dave Ihnat <ignatz dminet com>
> Subject: Re: Vi: Replace Word sequence
> To: redhat-list redhat com
> Date: Tue, 5 Feb 2002 08:17:52 -0600
> Message-ID: <20020205081752 K32508 dminet com>
>
> 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





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]