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

263 active golfers, 964 entries

Leaderboard (lowest score wins):
20
#121 - yqu212 / @yqu212

07/27/2018 at 05:39AM

20
#122 - David Findley / @thefindley

09/07/2018 at 03:34AM

20
#123 - royer / @RoyerMoyer1

09/23/2018 at 05:49PM

20
#124 - Brendan B Amdocs / @AmdocsB

09/28/2018 at 03:27PM

20
#125 - Roger Bongers / @RogerBongers

10/05/2018 at 07:39PM

20
#126 - Benjamin Kiesl / @BenjaminKiesl

10/16/2018 at 12:24PM

20
#127 - Mihai / @mihaicristiant

12/03/2018 at 08:32AM

20
#128 - guxbug / @guxbug1

12/20/2018 at 03:13AM

20
#129 - Andreas Nordahl / @andreasnordahl

01/03/2019 at 11:41AM

20
#130 - 默罕默德 / @Rt6RjEAJ987Woes

02/18/2019 at 09:21AM

21
#131 - YNWP / @ynw_P

08/27/2017 at 04:20AM

21
#132 - よんわ / @ynw_s

08/27/2017 at 04:24AM

21
#133 - Peter B / @l0wm4x

08/27/2017 at 05:37PM

21
#134 - Jan Bundesmann / @janbundesmann

08/28/2017 at 07:43AM

21
#135 - Song Zheng / @songz

08/29/2017 at 02:24AM

21
#136 - 杨洋 / @176795444

08/29/2017 at 10:50AM

21
#137 - hatoo / @hato2000

08/30/2017 at 07:36AM

21
#138 - dayshade / @dayshade_7

08/30/2017 at 02:51PM

21
#139 - lack / @lack84639857

09/08/2017 at 10:26AM

21
#140 - Jonathan Eidsness / @jonathaneidsnes

09/15/2017 at 05:34AM

21
#141 - Nelson Ruivo / @stringbasic

09/19/2017 at 10:47PM

21
#142 - Rami Hovi / @hacker_lawyer

09/20/2017 at 08:41PM

21
#143 - MathijsHoogland / @MathijsHoogland

12/28/2017 at 05:43PM

21
#144 - GreenPinguin / @GreenPinguin2

03/08/2018 at 02:08PM

21
#145 - youyou / @anth200

03/11/2018 at 10:54AM

21
#146 - vimthrowaway / @vimgolf_throw

03/30/2018 at 06:31AM

21
#147 - Adam Taylor / @the_adamtaylor

05/04/2018 at 03:01PM

21
#148 - bluemartian / @bluemartianz59

08/21/2018 at 02:41AM

21
#149 - François Marais / @maraisf

10/14/2018 at 04:08PM

21
#150 - Mateen Ulhaq / @sicariusnoctis

02/13/2019 at 06:37AM