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

250 active golfers, 863 entries

Leaderboard (lowest score wins):
19
#31 - Arthur van Rooijen / @MuadDev

11/02/2017 at 04:08PM

19
#32 - Turkey Man / @lvturkeyman

11/07/2017 at 04:36PM

19
#33 - OPChrom / @OPChrom

11/09/2017 at 03:43PM

19
#34 - Juuso Valkeejärvi / @jussovalk

11/10/2017 at 09:36PM

19
#35 - BobbyLapointe / @BobbyLapointe7

11/13/2017 at 05:04PM

19
#36 - Gabriel Siqueira / @Gabriel_HSiq

12/02/2017 at 10:50PM

19
#37 - Prithviraj Patil / @dummyprithviraj

12/03/2017 at 02:20PM

19
#38 - 梧桐王子 / @WutongYujie

12/05/2017 at 05:53AM

19
#39 - Pereant osores / @viniciusxp

12/05/2017 at 05:31PM

19
#40 - Eric Liao / @rcliaodev

12/07/2017 at 07:51AM

19
#41 - Alphonse Mariya / @alfunx

01/08/2018 at 06:23PM

19
#42 - ParasamGateZero / @ParasamGateZero

01/14/2018 at 10:53AM

19
#43 - Arijus / @argshook

02/03/2018 at 03:04PM

19
#44 - Urbanovics Péter / @UrbanovicsP

02/20/2018 at 12:41PM

19
#45 - Guirec CORBEL / @GuirecCorbel

02/27/2018 at 01:29AM

19
#46 - LC / @leeren

03/01/2018 at 08:39AM

19
#47 - ewalk153 / @ewalk153

04/01/2018 at 02:04AM

19
#48 - platypusDancing / @platypusDancing

04/27/2018 at 05:49AM

19
#49 - golfer / @golfer30767399

05/04/2018 at 11:52PM

19
#50 - Kaydo Alders / @Yousousen

05/06/2018 at 10:51PM

19
#51 - Matt Aschmann / @ma7hatter

05/25/2018 at 09:57PM

19
#52 - omrisarig / @omrisarig

06/16/2018 at 10:43AM

19
#53 - Daniël De Koker / @daniel_koker

06/25/2018 at 11:30AM

19
#54 - Artūras Zakrevskis / @AZakrevskis

07/05/2018 at 03:53PM

19
#55 - Remus Dalrymple / @bornintheflames

07/16/2018 at 07:11AM

19
#56 - Francesco Sacchi / @depsir

07/17/2018 at 02:49PM

19
#57 - Chris Dean / @ChrisDe62379742

07/18/2018 at 06:56PM

19
#58 - Pfhor / @PfhorShark

07/18/2018 at 09:49PM

19
#59 - Andrew Peterson / @FungalRaincloud

07/28/2018 at 11:20PM

19
#60 - 🌀🦋Miriam Retka🦋🌀 / @miriamretka

08/24/2018 at 05:09PM