TransWikia.com

Vim-adventures on level 7 emptyStr = "xx xx";

Arqade Asked by Tschabadu on August 17, 2021

In earlier versions of vim-adventures I saw that the Puzzle was emptyStr = "xxxxx" which could be solved with either fx -> dw or fx -> de. However nowadays it seems to be a little different emptyStr = "xx xx", which brings me to my question/problem:

How can I delete xx xx inside the quotes " as it is not one word anymore, with my given keystrokes shown in the pictures below?

Either I am missing something here or this might be a BUG…

Puzzle

Keyboard

One Answer

Basically you can use the d command with any {motion}, see vim reference http://vimdoc.sourceforge.net/htmldoc/change.html#d.

                                      *d*
["x]d{motion}       Delete text that {motion} moves over...

And a motion is explained here http://vimdoc.sourceforge.net/htmldoc/intro.html#{motion} and can be w, b, 4j or t etc.

Hint

Solution

So it is definitely not a BUG as mentioned earlier.

Correct answer by Tschabadu on August 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP