0

Need some help here:

How to replace the word bored with the context of the buffer? I can't diw because then I won't have place to stand on. I can ciw but then I can't paste directly from the buffer without typing a letter first.

2 Answers 2

2

Okay it was easy after finding . - it repeats the whole replace part

1
  • where is the '.' key?
    – aronchick
    Apr 3, 2015 at 1:10
0

I don't know about Vim Adventures, but using regular Vim you'd use "_ to select the "black hole register" so the text you replace goes nowhere, then cw to change word, then once you're in insert mode, hit ctrl r to select a register, then " to paste the contents of the default unnamed register.

If your contents are in a different register, substitute that register with the final ". For example, if your desired contents are in the clipboard register (*) then when in insert mode, type ctrl r then *.

tl;dr - "_cw^R"

1
  • Problem is there is no Ctrl-R in Vim Adventures.
    – firedev
    Oct 10, 2014 at 0:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .