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

343 active golfers, 1320 entries

Leaderboard (lowest score wins):
29
#301 - Kyle Safran / @kylesafran

01/22/2019 at 08:52PM

29
#302 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 09:25AM

30
#303 - Rodrigo Santa Cruz / @rstcruzo

10/16/2017 at 04:09AM

30
#304 - martin tourneboeuf / @martintournebo1

07/01/2018 at 07:16PM

30
#305 - Joao Figueiredo / @j1fig

07/05/2018 at 03:12PM

30
#306 - albalitz / @_albalitz

06/05/2019 at 08:51AM

30
#307 - Bruno Machado / @brunosmmachado

10/20/2019 at 01:01PM

30
#308 - Ali Kero / @stochastist

02/14/2020 at 01:36PM

30
#309 - Soumadeep Saha / @SoumadeepSaha8

05/10/2020 at 02:49AM

31
#310 - David / @Latiku

08/28/2017 at 07:49PM

31
#311 - Omar M. Ali / @OmarMMAli

10/30/2017 at 09:04PM

31
#312 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:26PM

31
#313 - Tuomas Jokioja / @TJokioja

10/16/2018 at 08:08AM

31
#314 - deHman89 / @danho89

06/05/2019 at 08:57AM

32
#315 - かりうむ / @ka1l

11/15/2017 at 11:35AM

32
#316 - Fabio Branquinho / @branquif

11/08/2018 at 07:35PM

33
#317 - Veljko Dimic / @v2dimic

02/06/2018 at 10:44PM

33
#318 - tuyen / @tuyen66827418

11/27/2018 at 04:48PM

33
#319 - PotatoKing / @PotatoK72775616

03/27/2020 at 09:43PM

34
#320 - Ítalo Vieira / @italogvieira

09/11/2017 at 02:32AM

35
#321 - Christian / @paierlep

09/01/2019 at 07:24AM

36
#322 - Chris Kirkland / @numbahs

11/07/2017 at 04:06AM

36
#323 - l / @ioio85

02/06/2018 at 02:16AM

37
#324 - Luis Rodriguez / @luisthecoder

11/13/2018 at 02:51AM

37
#325 - Rafael Lin / @RafaelLin0310

12/20/2019 at 04:22PM

38
#326 - Akin S / @Akin_So

09/26/2017 at 10:45PM

39
#327 - Shawn Axsom / @ShawnAxsom

08/27/2017 at 11:59PM

39
#328 - Jake Nixon / @thejakenixon

10/02/2019 at 05:53PM

41
#329 - Brent Woo / @BrentPWoo

10/05/2018 at 08:24PM

46
#330 - Michael Heyman / @michaelheyman

11/16/2017 at 02:33AM