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):
20
#91 - Stephen Betts / @stephenbetts

10/10/2017 at 04:00PM

20
#92 - jairoandre / @jairoandre

10/11/2017 at 08:35PM

20
#93 - えるざっぷ / @_elzup_

10/13/2017 at 06:44AM

20
#94 - Robert Mosher / @rcmosher

10/18/2017 at 04:09PM

20
#95 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 07:08PM

20
#96 - ryuugekisya / @ryuugekisya

11/04/2017 at 03:45AM

20
#97 - Kim Hwa Joong / @hanmwoi

12/14/2017 at 01:32PM

20
#98 - Luke Parsons / @lukeparsons

12/28/2017 at 08:52PM

20
#99 - BarbaJol / @drpproteus

12/30/2017 at 01:52PM

20
#100 - John C Shea / @MHSSachems

01/29/2018 at 11:24AM

20
#101 - lopezpaz_ / @lopezpaz_

02/02/2018 at 10:06AM

20
#102 - Henrique Malheiro / @rike09

02/17/2018 at 05:20PM

20
#103 - bruno / @LokoPoggi

02/24/2018 at 02:38AM

20
#104 - wes / @_weslly

03/11/2018 at 03:13AM

20
#105 - Lisa Ugray / @lisa_ugray

03/13/2018 at 08:08PM

20
#106 - Pablo / @suspekt007

04/08/2018 at 07:47AM

20
#107 - Frank Malone / @FrankMa00268686

04/08/2018 at 03:51PM

20
#108 - DHM / @DHM29978992

04/11/2018 at 08:00PM

20
#109 - nomsayin / @nomsayin

04/16/2018 at 02:59AM

20
#110 - Justin Hoyt / @JustinHoyt24

05/04/2018 at 03:14PM

20
#111 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 08:36PM

20
#112 - Lifepillar / @lifepillar

05/06/2018 at 07:42PM

20
#113 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 07:30PM

20
#114 - Aunt Jovie / @auntjovie

05/14/2018 at 10:06PM

20
#115 - Jonathan Camilleri / @Too_Many_Taken

05/24/2018 at 01:43PM

20
#116 - Henry Woolenthorpe / @woolenthorpe

07/04/2018 at 01:45AM

20
#117 - yqu212 / @yqu212

07/27/2018 at 05:39AM

20
#118 - David Findley / @thefindley

09/07/2018 at 03:34AM

20
#119 - royer / @RoyerMoyer1

09/23/2018 at 05:49PM

20
#120 - Brendan B Amdocs / @AmdocsB

09/28/2018 at 03:27PM