I’ve been a Vim user for about 4 years now. I love it and use it as my primary IDE (NeoVim with a custom AstroNvim config). But even though I’ve been using it for a long time, I’m still learning new things about it!

I found this really cool website called Vim Adventures. It’s basically a video game running in a web browser that teaches you Vim commands as you progress through it. I tried out the demo and it’s really fun. I also found a free quiz on the website. The goal is to make changes on the given block of text using the minimum number of keystrokes.

vim-adventures-quiz

I spent a couple of hours trying to figure out a solution and finally got the keystrokes down to the required 74. The specific set of keystrokes I followed was:

deleting from "Actually," to "reading. "
  keystrokes -> /A<ENTER>d2)

deleting lines 7 to 10
  keystrokes -> *4dd

replacing 1 with one
  keystrokes -> /1<ENTER>sone<ESC>n.

changing the line "2B "
  keystrokes -> 8wCthey<SPACE>can<ESC>

inserting "who do."
  keystrokes -> Gowho<SPACE>do.<ESC>

changing boring to crazy and copying 'ones'
  keystrokes -> /b<ENTER>cwcrazy<ESC>lye

replacing z with s
  keystrokes -> /z<ENTER>rsn.n.n.

inserting in at the beginning of line 4
  keystrokes -> Iin<SPACE><ESC>

pasting ones at the end of line 4
  keystrokes -> $p

I found the quiz really interesting, and also learnt a few new commands along the way :)