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

283 active golfers, 1052 entries

Leaderboard (lowest score wins):
23
#181 - Jasper Armstrong / @jasperarmstrong

09/14/2017 at 10:47AM

23
#182 - Alphonso De La Morte / @FatDrakula

09/17/2017 at 12:22PM

23
#183 - Conrad / @Conrad55084958

09/17/2017 at 01:57PM

23
#184 - Maciek Wcislik / @inoutin

09/19/2017 at 12:55PM

23
#185 - Andrew's Testing / @andrewwwtest

09/19/2017 at 09:56PM

23
#186 - Diego Roccia / @rocciadiego

09/19/2017 at 10:02PM

23
#187 - Alex Coventry / @AlexCoventry4

09/21/2017 at 12:21AM

23
#188 - Tim Varley / @varleti

09/25/2017 at 04:22PM

23
#189 - Elton Kamami / @pixel_grid

10/07/2017 at 07:24PM

23
#190 - Felipe Apostol / @flipjsio

10/08/2017 at 05:52PM

23
#191 - Jason Stidd / @jd_stidd

10/10/2017 at 08:33PM

23
#192 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 03:28PM

23
#193 - Seybol / @Seybol_

10/14/2017 at 11:06PM

23
#194 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 12:15AM

23
#195 - Daniel Hjelm / @dhjelm

10/22/2017 at 01:49PM

23
#196 - popo5colo / @popo5colo1

10/31/2017 at 06:08AM

23
#197 - Philippe / @cloonn1

11/02/2017 at 10:15PM

23
#198 - deepak / @utopianmonk

12/30/2017 at 01:36AM

23
#199 - Oleg Skillup / @skill_up

03/25/2018 at 07:54PM

23
#200 - matthew brett / @matthewbrett

03/26/2018 at 08:45AM

23
#201 - Noah Botimer / @botimer

04/15/2018 at 10:08AM

23
#202 - Micah Halter / @mehalter

05/03/2018 at 07:48PM

23
#203 - Paul Jones / @thepauljones

06/27/2018 at 11:50AM

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

07/05/2018 at 05:19AM

23
#205 - Timothée Gauthier / @zmf_tim

08/04/2018 at 09:38PM

23
#206 - Dave Brda / @BrdaDave

10/31/2018 at 02:48AM

23
#207 - Sxcy / @SxcyX

11/06/2018 at 03:15PM

23
#208 - Izaak van Dongen / @goedel_gang

04/28/2019 at 01:39AM

23
#209 - Καράτε Μόνο / @karate_mono

05/10/2019 at 07:58PM

24
#210 - David ROBIN / @DavidRobin48

08/27/2017 at 09:35PM