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

253 active golfers, 892 entries

Leaderboard (lowest score wins):
19
#1 - Kerson Hsiao / @KersonHsiao

08/31/2017 at 02:35AM

19
#2 - Saki Gw / @Sakigw

08/31/2017 at 09:43AM

19
#3 - Virgil Ashruf / @eSrem

08/31/2017 at 12:11PM

19
#4 - Kutsan Kaplan / @kutsankaplan

08/31/2017 at 06:21PM

19
#5 - zava / @znl1087

09/03/2017 at 08:54AM

19
#6 - John Braxler / @braxler

09/06/2017 at 07:25PM

19
#7 - Vimgolf / @vimgolf987

09/07/2017 at 09:40PM

19
#8 - Alejandro Catalina / @AleexCatalina

09/10/2017 at 04:39PM

19
#9 - 郑晓东 / @DGivxLTVopiOQap

09/12/2017 at 03:22AM

19
#10 - herbage / @herbage2

09/13/2017 at 07:54AM

19
#11 - Alonzo / @tolver_a

09/17/2017 at 08:59AM

19
#12 - Smylers / @Smylers2

09/18/2017 at 12:38PM

19
#13 - how ja din / @o157529

09/20/2017 at 03:41AM

19
#14 - Owen / @owengeorge_

09/20/2017 at 06:59AM

19
#15 - Sean Moogan / @Moogarillo

09/22/2017 at 03:23PM

19
#16 - xer0.5ive / @Bibekshah

09/22/2017 at 08:05PM

19
#17 - Kristoffer Ahlqvist / @ahlqvistk

09/24/2017 at 01:42PM

19
#18 - Sergio / @voyeg3r

09/26/2017 at 08:53AM

19
#19 - F / @gofilby

09/26/2017 at 07:07PM

19
#20 - Luke Bryant / @LukeBryant55

09/29/2017 at 02:41PM

19
#21 - Jon Wålstedt / @jonwalstedt

09/30/2017 at 10:26PM

19
#22 - Michail Pishchagin / @mblsha

10/02/2017 at 07:46AM

19
#23 - 5tephen / @geluso

10/02/2017 at 09:30PM

19
#24 - Jon Krause / @jkrause314

10/08/2017 at 10:29PM

19
#25 - Zakaria ANBARI / @abualy4400

10/11/2017 at 03:08PM

19
#26 - Rich Cheng / @sedm0784

10/11/2017 at 03:42PM

19
#27 - Rafael Souza / @heavyDosesOfDMT

10/11/2017 at 08:38PM

19
#28 - Ron Alexssen / @Ralexhere

10/11/2017 at 09:19PM

19
#29 - thvdburgt / @thvdburgt

10/16/2017 at 10:30AM

19
#30 - mkl / @Hnr1zklc

10/27/2017 at 11:16AM