10

I am stuck on a puzzle on level 7 where the player needs to remove the x's from the sentence.

fx will find forward, t will go txill, ; wixll repeat them, , rexverse the dexal "

I only have 12 key presses to pass, but I never can complete it. I get to the last step when I have 0 chances left. I believe in this exercise I should use 't\T\f\F' and ';' and ',' buttons, however I am still stuck.Level 7 part 2.5

1
  • did you manage to solve it? What were the precise strokes you used? Commented Jul 15, 2020 at 15:29

4 Answers 4

8

Searches made using f and t are remembered across different blocks of text in the game (and across buffers in vim), so you can use ; and , on the first line using the saved search from your previous attempt to save one keystroke.

2
  • can you give the exact sequence of keyboard strokes? I am still missing one and Im already using ; and , Commented Jul 15, 2020 at 15:28
  • Very tricky that this requires you to enter the command before getting on the text board so that it is already in your saved searches.
    – blwinters
    Commented Jan 15, 2022 at 21:27
4

In order to finish this puzzle, you need to collect the f, ; and , keys. Note that when you bump into bushes, you sometimes find things - either keyboard shortcuts or people.

You should go back to the Alice text at the beginning of the level (the long one) and go through all the bushes. There are a lot of things to find. It will also make traversing the text a lot easier.

One more thing, if you're still missing one keystroke to finish this text after you collect everything, remember that ; and , repeat the last search within the line, even if it was not performed on the current text.

1
  • can you give the exact sequence of keyboard strokes? I am still missing one and Im already using ; and , Commented Jul 15, 2020 at 15:28
0

As said above; using ft,; but.... you cannot complete the puzzle on the first attempt.

2
  • Can you go into more detail please? Why can't they beat the puzzle on the first attempt?
    – Robbie
    Commented Dec 7, 2019 at 20:42
  • can you give the exact sequence of keyboard strokes? I am still missing one and Im already using ; and , Commented Jul 15, 2020 at 15:28
0

Since a list of the precise keystrokes is requested, I've just confirmed this works. Spoilers below.

This puzzle can be done with two passes. First pass:

j to enter the puzzle; 0 to get to the beginning of the first line; fx to search for x, which stores it in the search memory. Now press [esc] twice to quit the first pass.

Second pass:

  1. j to enter the puzzle;
  2. , to search backwards for the x, then x to delete it;
  3. j down to second line;
  4. ; to repeat the search forwards for x, then x to delete it;
  5. j down to third line;
  6. , to repeat the search backwards for x, then x to delete it;
  7. j down to fourth line, already on the x so x to delete it;
  8. finally, ; to repeat the search forwards for x, and x to delete it.

Happy Vim Adventuring!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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