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 383 remaining solutions by signing in and submitting your own entry
#384 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

384 active golfers, 1542 entries

Leaderboard (lowest score wins):
19
#61 - Jeff / @sir_wiggles3

09/08/2018 at 07:54PM

19
#62 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 01:16PM

19
#63 - Dax / @zacoxi

10/29/2018 at 02:54AM

19
#64 - CptBong / @cpt1bong

12/03/2018 at 12:59AM

19
#65 - abgalphabet / @abgalphabet

01/22/2019 at 12:10PM

19
#66 - band / @band26376522

01/26/2019 at 08:25PM

19
#67 - Anant Mishra / @anantanni22

02/01/2019 at 01:27PM

19
#68 - alekfed / @alek_fed

04/15/2019 at 08:29AM

19
#69 - james_bunch / @james_bunch

04/16/2019 at 11:32PM

19
#70 - Grant / @grant_7788

04/28/2019 at 03:07PM

19
#71 - majo senf / @majo_senf

06/17/2019 at 11:33AM

19
#72 - Miłosz Łakomy / @foobar01123

06/25/2019 at 04:04PM

19
#73 - Martin Delille / @martinodelilo

08/27/2019 at 12:52PM

19
#74 - vimgolfer / @vimgolfer7

10/04/2019 at 01:02AM

19
#75 - Viktor Styrud / @ViktorStyrud

10/07/2019 at 02:19PM

19
#76 - Mario Olofo / @mario_olofo

10/22/2019 at 02:57AM

19
#77 - skamgolf / @skamgolf

12/14/2019 at 05:15PM

19
#78 - James Casey / @hanavi

12/21/2019 at 09:14PM

19
#79 - Delon / @delonleonard

12/29/2019 at 03:13AM

19
#80 - Jean-Francois Parent / @hacker_pyrat

02/14/2020 at 02:56PM

19
#81 - countime / @countime1

03/12/2020 at 10:32AM

19
#82 - せいほう / @FICSQF

03/13/2020 at 05:39AM

19
#83 - 杜撰 / @NOrUixDzwW4BbCP

03/16/2020 at 10:35AM

19
#84 - Arthur Goodman / @ArthurGoodman3

05/07/2020 at 08:27AM

19
#85 - Moatvald / @moatvald

05/10/2020 at 10:53AM

19
#86 - 于吉星 / @fishermryn

05/27/2020 at 02:51AM

19
#87 - Karol Łukaszewicz / @Karolukaszewicz

06/25/2020 at 09:49AM

19
#88 - lamtt77 / @lamtt77

10/12/2020 at 02:14AM

19
#89 - Jung Yeon Park / @park_jungy

01/08/2021 at 07:11PM

19
#90 - A A A / @37fatos

01/16/2021 at 12:47AM