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):
23
#181 - Micah Halter / @mehalter

05/03/2018 at 07:48PM

23
#182 - Paul Jones / @thepauljones

06/27/2018 at 11:50AM

23
#183 - 赤佐田奈葉 / @akasatanaha_

07/05/2018 at 05:19AM

23
#184 - Timothée Gauthier / @zmf_tim

08/04/2018 at 09:38PM

23
#185 - Dave Brda / @BrdaDave

10/31/2018 at 02:48AM

23
#186 - Sxcy / @SxcyX

11/06/2018 at 03:15PM

24
#187 - David ROBIN / @DavidRobin48

08/27/2017 at 09:35PM

24
#188 - Graham Bates / @gigabates

09/15/2017 at 11:35PM

24
#189 - Evan Relf / @evanrelf

09/17/2017 at 04:19AM

24
#190 - h43z / @h43z

09/30/2017 at 07:41PM

24
#191 - sehe / @sehetw

10/10/2017 at 12:41PM

24
#192 - vimgolfer / @vimgolfinger

11/03/2017 at 02:41AM

24
#193 - Paul Sonkoly / @Phaul

12/09/2017 at 01:00PM

24
#194 - Джабраил / @Dzhabrik

01/03/2018 at 02:39AM

24
#195 - danmakenoise / @danmakenoise

03/17/2018 at 12:36PM

24
#196 - Moritz Manner / @moritz_manner

03/17/2018 at 07:29PM

24
#197 - 서강훈 / @shirano150

04/05/2018 at 05:58AM

24
#198 - Gemille Ford / @gemilleford

07/03/2018 at 12:48AM

24
#199 - 최종원 / @lastone9182

07/17/2018 at 02:38PM

25
#200 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:02AM

25
#201 - Jason Liang / @summerjacketx

09/05/2017 at 05:19AM

25
#202 - Herr Joschka / @HerrJoschka

10/19/2017 at 03:41AM

25
#203 - Ben Hill / @KaizenSoze70

12/04/2017 at 12:05PM

25
#204 - gerry / @ggaonag

03/31/2018 at 05:15PM

25
#205 - frank p / @icedearth55

05/12/2018 at 10:06AM

25
#206 - Kris Ezra / @kris_ezra

06/14/2018 at 04:27PM

25
#207 - mass / @mass256

07/09/2018 at 05:38AM

26
#208 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 06:58PM

26
#209 - Sebastian Korten / @FlashKorten

10/28/2017 at 10:53AM

26
#210 - Mihai / @mihaicristiant

11/10/2017 at 08:03PM