Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 59a2167bd6550c0006000005

multiple cursor alternative

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

Start file
<section class="top-bar-selection">
  <ul class="left">
    <li class="divider"></li>
    <li class="active">
      <a href="homepage.html">Page 1</a></li>
    <li class="divider"></li>
    <li>
      <a href="homepage.html">Page 2</a></li>
    <li class="divider"></li>
    <li>
      <a href="homepage.html">Page 3</a></li>
    <li class="divider"></li>
    <li>
      <a href="homepage.html">Page 4</a></li>
  </ul>
</section>
End file
<section class="top-bar-selection">
  <ul class="left">
    <li class="divider"></li>
    <li class="active">
      <a href="Page1.html">Page 1</a></li>
    <li class="divider"></li>
    <li>
      <a href="Page2.html">Page 2</a></li>
    <li class="divider"></li>
    <li>
      <a href="Page3.html">Page 3</a></li>
    <li class="divider"></li>
    <li>
      <a href="Page4.html">Page 4</a></li>
  </ul>
</section>

View Diff

5c5
<       <a href="homepage.html">Page 1</a></li>
---
>       <a href="Page1.html">Page 1</a></li>
8c8
<       <a href="homepage.html">Page 2</a></li>
---
>       <a href="Page2.html">Page 2</a></li>
11c11
<       <a href="homepage.html">Page 3</a></li>
---
>       <a href="Page3.html">Page 3</a></li>
14c14
<       <a href="homepage.html">Page 4</a></li>
---
>       <a href="Page4.html">Page 4</a></li>

Solutions by @zacoxi:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @wyne

380 active golfers, 1519 entries

Solutions by @zacoxi:
19
#63 - Dax / @zacoxi

10/29/2018 at 02:54AM

19
#>63 - Dax / @zacoxi

11/20/2018 at 02:38AM

20
#>157 - Dax / @zacoxi

10/29/2018 at 02:50AM

21
#>216 - Dax / @zacoxi

10/29/2018 at 02:09AM

22
#>229 - Dax / @zacoxi

10/29/2018 at 01:26AM

23
#>273 - Dax / @zacoxi

10/29/2018 at 01:24AM

24
#>293 - Dax / @zacoxi

10/29/2018 at 01:20AM

25
#>306 - Dax / @zacoxi

10/29/2018 at 01:13AM

26
#>314 - Dax / @zacoxi

10/29/2018 at 01:08AM

27
#>323 - Dax / @zacoxi

10/26/2018 at 06:12AM

28
#>325 - Dax / @zacoxi

10/25/2018 at 07:39AM

39
#>361 - Dax / @zacoxi

10/25/2018 at 07:31AM

67
#>378 - Dax / @zacoxi

10/25/2018 at 07:28AM