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

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

  • where is the '.' key? – aronchick Apr 3 '15 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"

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.