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
#121 - Roger Bongers / @RogerBongers

10/05/2018 at 07:39PM

20
#122 - Benjamin Kiesl / @BenjaminKiesl

10/16/2018 at 12:24PM

21
#123 - YNWP / @ynw_P

08/27/2017 at 04:20AM

21
#124 - よんわ / @ynw_s

08/27/2017 at 04:24AM

21
#125 - Peter B / @l0wm4x

08/27/2017 at 05:37PM

21
#126 - Jan Bundesmann / @janbundesmann

08/28/2017 at 07:43AM

21
#127 - Song Zheng / @songz

08/29/2017 at 02:24AM

21
#128 - 杨洋 / @176795444

08/29/2017 at 10:50AM

21
#129 - hatoo / @hato2000

08/30/2017 at 07:36AM

21
#130 - dayshade / @dayshade_7

08/30/2017 at 02:51PM

21
#131 - lack / @lack84639857

09/08/2017 at 10:26AM

21
#132 - Jonathan Eidsness / @jonathaneidsnes

09/15/2017 at 05:34AM

21
#133 - Nelson Ruivo / @stringbasic

09/19/2017 at 10:47PM

21
#134 - Rami Hovi / @hacker_lawyer

09/20/2017 at 08:41PM

21
#135 - MathijsHoogland / @MathijsHoogland

12/28/2017 at 05:43PM

21
#136 - GreenPinguin / @GreenPinguin2

03/08/2018 at 02:08PM

21
#137 - youyou / @anth200

03/11/2018 at 10:54AM

21
#138 - vimthrowaway / @vimgolf_throw

03/30/2018 at 06:31AM

21
#139 - Adam Taylor / @the_adamtaylor

05/04/2018 at 03:01PM

21
#140 - bluemartian / @bluemartianz59

08/21/2018 at 02:41AM

21
#141 - François Marais / @maraisf

10/14/2018 at 04:08PM

22
#142 - tPenguinLTG / @tpenguinltg

08/27/2017 at 03:04AM

22
#143 - SirVimGolf / @SirVimGolf

08/27/2017 at 02:14PM

22
#144 - tempo dooake / @tempo_dooake

09/01/2017 at 01:09AM

22
#145 - Matt Rixman / @MattRixman

10/02/2017 at 04:16PM

22
#146 - Stefan Knudsen / @knud32

10/06/2017 at 03:29PM

22
#147 - Mike Reinhardt / @subitoforte

10/17/2017 at 06:01PM

22
#148 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 04:41PM

22
#149 - Dominic Z / @thammaaa

12/21/2017 at 09:59AM

22
#150 - Rakesh P / @rakeshpgopal

04/29/2018 at 08:33AM