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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 384 remaining solutions by signing in and submitting your own entry
#385 Daniel Rasmuson / @danielrasmuson - Score: 85 - 09/06/17 @ 06:04
/home<CR>vi"xiPage1.html<Esc>jjjvi"xiPage2.html<Esc>jjjvi"xiPage3.html<Esc>jjjvi"xiPage5<BS>4.html<Esc>:wq<CR>

0 comments


Created by: @wyne

385 active golfers, 1547 entries

Leaderboard (lowest score wins):
36
#361 - Chris Kirkland / @numbahs

11/07/2017 at 04:06AM

36
#362 - l / @ioio85

02/06/2018 at 02:16AM

37
#363 - Luis Rodriguez / @luisthecoder

11/13/2018 at 02:51AM

37
#364 - Rafael Lin / @RafaelLin0310

12/20/2019 at 04:22PM

38
#365 - Akin S / @Akin_So

09/26/2017 at 10:45PM

39
#366 - Shawn Axsom / @ShawnAxsom

08/27/2017 at 11:59PM

39
#367 - Jake / @thejakenixon

10/02/2019 at 05:53PM

41
#368 - Brent Woo / @BrentPWoo

10/05/2018 at 08:24PM

44
#369 - Thomas Hiron / @thomashiron

03/17/2023 at 03:24PM

46
#370 - Michael Heyman / @michaelheyman

11/16/2017 at 02:33AM

48
#371 - Shalin Scupham / @shalin_scupham

04/21/2020 at 01:52AM

49
#372 - niwatoco / @yoshitune9

07/19/2018 at 01:59AM

49
#373 - Jurica / @Jurica34581259

11/15/2018 at 12:50AM

49
#374 - Aaron / @_Lordofthevoid_

11/29/2019 at 05:24PM

54
#375 - Geoff / @RealGeoffErwin

09/26/2017 at 10:17PM

54
#376 - Sebastian Aburto / @saburto_m

10/01/2017 at 08:42PM

57
#377 - dione bigode / @dionebigode

05/25/2020 at 07:24PM

59
#378 - david@@@@wang / @davidwa86717152

11/16/2018 at 09:07AM

60
#379 - Di Liu / @Skyerliu

06/21/2020 at 01:46PM

60
#380 - fff / @fff51460170

02/21/2021 at 05:07AM

61
#381 - Vim Golfer / @VimGolfer6

08/11/2019 at 01:07PM

62
#382 - d8d90d / @d8d90d

08/23/2018 at 05:55PM

64
#383 - Nome / @sensorario

09/21/2017 at 04:55PM

70
#384 - William Burns / @_william_burns

09/20/2017 at 07:21PM

85
#385 - Daniel Rasmuson / @danielrasmuson

09/06/2017 at 06:04AM