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

271 active golfers, 1001 entries

Leaderboard (lowest score wins):
23
#181 - Diego Roccia / @rocciadiego

09/19/2017 at 10:02PM

23
#182 - Alex Coventry / @AlexCoventry4

09/21/2017 at 12:21AM

23
#183 - Tim Varley / @varleti

09/25/2017 at 04:22PM

23
#184 - Elton Kamami / @pixel_grid

10/07/2017 at 07:24PM

23
#185 - Felipe Apostol / @flipjsio

10/08/2017 at 05:52PM

23
#186 - Jason Stidd / @jd_stidd

10/10/2017 at 08:33PM

23
#187 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 03:28PM

23
#188 - Seybol / @Seybol_

10/14/2017 at 11:06PM

23
#189 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 12:15AM

23
#190 - Daniel Hjelm / @dhjelm

10/22/2017 at 01:49PM

23
#191 - popo5colo / @popo5colo1

10/31/2017 at 06:08AM

23
#192 - Philippe / @cloonn1

11/02/2017 at 10:15PM

23
#193 - deepak / @utopianmonk

12/30/2017 at 01:36AM

23
#194 - Oleg Skillup / @skill_up

03/25/2018 at 07:54PM

23
#195 - matthew brett / @matthewbrett

03/26/2018 at 08:45AM

23
#196 - Noah Botimer / @botimer

04/15/2018 at 10:08AM

23
#197 - Micah Halter / @mehalter

05/03/2018 at 07:48PM

23
#198 - Paul Jones / @thepauljones

06/27/2018 at 11:50AM

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

07/05/2018 at 05:19AM

23
#200 - Timothée Gauthier / @zmf_tim

08/04/2018 at 09:38PM

23
#201 - Dave Brda / @BrdaDave

10/31/2018 at 02:48AM

23
#202 - Sxcy / @SxcyX

11/06/2018 at 03:15PM

24
#203 - David ROBIN / @DavidRobin48

08/27/2017 at 09:35PM

24
#204 - Graham Bates / @gigabates

09/15/2017 at 11:35PM

24
#205 - Evan Relf / @evanrelf

09/17/2017 at 04:19AM

24
#206 - h43z / @h43z

09/30/2017 at 07:41PM

24
#207 - sehe / @sehetw

10/10/2017 at 12:41PM

24
#208 - vimgolfer / @vimgolfinger

11/03/2017 at 02:41AM

24
#209 - Paul Sonkoly / @Phaul

12/09/2017 at 01:00PM

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

01/03/2018 at 02:39AM