Vim-Adventures in level 7
In Vim-Adventures, I'm trying to delete several lines in the same time, but I don't even know how to to that.
In the following video, they use d%
to remove this line, but it doesn't work for me.
Thanks in advance!
Solution 1:
I love this game! Thanks for an excuse to play it again.
To remove the 3 lines within the 5 keystroke limit, you need either the %
key or the G
key.
- Enter the puzzle on the
i
inif
. - Use
$
to get to the end of the line. - Use
%
to move to the matching}
tile, which is down two lines. - Use
j
to move down into theelse {
line. - Use
d%
ordG
to delete the 3 red lines.
Or:
- Enter on the
i
inif
. - Use
G
to move to the last line. - Use
kk
to move up two lines. - Use
dG
ord%
to delete the specified text.
Happy Vimming!