On 03.08.17 06:58, Michael Henry wrote:
> I frequently use visual mode to select the word, then paste over
> the selection from register 0. Usually I don't want the
> behavior of ``dw`` because that removes trailing spaces and I
> typically have yanked only the replacement word (without
>
On 08/03/2017 05:00 AM, Erik Christiansen wrote:
> On 02.08.17 17:45, Parag Bhatt [C] wrote:
>> I am looking for a quick way to change a word(cw?) with one
>> that was yanked (yw). I do not want to enter insert mode,
>> and would like to do it in command mode.
>
> With the cursor on the start of
On 02.08.17 17:45, Parag Bhatt [C] wrote:
> I am looking for a quick way to change a word(cw?) with one that was
> yanked (yw). I do not want to enter insert mode, and would like to do
> it in command mode.
With the cursor on the start of the target word, dw"0P will do it.
I admit that I had to
> I am looking for a quick way to change a word(cw?) with one that was
> yanked (yw). I do not want to enter insert mode, and would like to do it
> in command mode.
>
yw
move the cursor immediately before the word to change (however you wish)
p
2dw
is one way to do it.
--
--
You received
Hi,
I am looking for a quick way to change a word(cw?) with one that was yanked
(yw). I do not want to enter insert mode, and would like to do it in command
mode.
--PB
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are