4

Problem

In vim-adventures, I've almost finished level 6 but I didn't find how to resolve the puzzle function doInigo(). I tried this maybe 100 times and for the moment I miss it for one keystroke.

vim-adventures level 6

My current moves

I start on the line with the text "what's up" and then have 25 keystrokes to do the job.

  • (1) E to move to the "!",
  • (2) l to go to the blank character
  • (3) D to delete the end of the line
  • (4-6) j j j to be on the line "Mrs." on the "I" of Inigo. For the moment I don't have the right to use 3j.
  • (7) B to be at the begining of the word "Mrs. "
  • (8-9) dW to delete the word "Mrs. "
  • (10) j to go the the next line
  • (11-12) dd to delete the line
  • (13-14) j j to go to the line "You skilled"
  • (15-16) w w to go at the beginning of the word "skilled"
  • (17) x to delete the "s"
  • (18-19) e e to go on the end of "my" to be just up to the Y of "DYE"
  • (20) j to be on the Y of DYE
  • (21-22) rI to change the Y in I
  • (23) j to go to the final line to delete... and no more keystroke to spent!
  • (24) ^ to be just before the word Stop on the closing curly brackets }
  • (25) l to be on at the beginning of the word Stop

End of level 6, keylocked

I need one extra movs to finish it : D but I can't figure out how to save up this moves before.

Actual keyboard

On the picture below are the actual keys I'm allowed to use.

Actual keyboard

Leads

  • Maybe I forgot to release somewhere the function to use the numbers and do something like 3j but I did't find it.
  • There is two keys I didn't used : ~ and X but can't see how they should be useful here

Any idea?

3

I found it finaly!

I discovered that it's possible do delete backward WORDS with dB. This replace my move (7). This game is really fantastic because it let my discover new moves.

Then my moves are :

  • (1) E to move to the "!",
  • (2) l to go to the blank character
  • (3) D to delete the end of the line
  • (4-6) j j j to be on the line "Mrs." on the "I" of Inigo. For the moment I don't have the right to use 3j.
  • (7-8) dBW to delete the word "Mrs. "
  • (9) j to go the the next line
  • (10-11) dd to delete the line
  • (12-13) j j to go to the line "You skilled"
  • (14-15) w w to go at the beginning of the word "skilled"
  • (16) x to delete the "s"
  • (17-18) e e to go on the end of "my" to be just up to the Y of "DYE"
  • (19) j to be on the Y of DYE
  • (20-21) rI to change the Y in I
  • (22) j to go to the final line to delete... and no more keystroke to spent!
  • (23) ^ to be just before the word Stop on the closing curly brackets }
  • (24) l to be on at the beginning of the word Stop
1

An alternate answer is on move (23) W .

This will line wrap to the next word. placing the crusor on { of the last line.

0

It's even possible to do it in 22 keystokes

E l D jjj dB j dd ww x jj b D B l rI

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.