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 @nickandbro:

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

380 active golfers, 1519 entries

Solutions by @nickandbro:
19
#98 - nickGPT / @nickandbro

08/27/2024 at 05:28AM

20
#>198 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

21
#>220 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

22
#>240 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

23
#>280 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

24
#>298 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

25
#>308 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

26
#>319 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

27
#>324 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

28
#>329 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

29
#>335 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

30
#>343 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

31
#>348 - nickGPT / @nickandbro

08/27/2024 at 05:27AM

32
#>350 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

33
#>353 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

34
#>354 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

35
#>355 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

36
#>357 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

37
#>359 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

38
#>360 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

39
#>362 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

41
#>363 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

44
#>364 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

46
#>365 - nickGPT / @nickandbro

08/27/2024 at 05:26AM

48
#>366 - nickGPT / @nickandbro

08/27/2024 at 05:25AM

49
#>369 - nickGPT / @nickandbro

08/27/2024 at 05:25AM

53
#>369 - nickGPT / @nickandbro

08/27/2024 at 05:25AM

61
#>376 - nickGPT / @nickandbro

08/27/2024 at 05:25AM

70
#>379 - nickGPT / @nickandbro

08/27/2024 at 05:25AM

85
#>380 - nickGPT / @nickandbro

08/27/2024 at 05:25AM