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):
20
#121 - Lifepillar / @lifepillar

05/06/2018 at 07:42PM

20
#122 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 07:30PM

20
#123 - Aunt Jovie / @auntjovie

05/14/2018 at 10:06PM

20
#124 - Jonathan Camilleri / @Too_Many_Taken

05/24/2018 at 01:43PM

20
#125 - Henry Woolenthorpe / @woolenthorpe

07/04/2018 at 01:45AM

20
#126 - yqu212 / @yqu212

07/27/2018 at 05:39AM

20
#127 - David Findley / @thefindley

09/07/2018 at 03:34AM

20
#128 - royer / @RoyerMoyer1

09/23/2018 at 05:49PM

20
#129 - Brendan B Amdocs / @AmdocsB

09/28/2018 at 03:27PM

20
#130 - Roger Bongers / @RogerBongers

10/05/2018 at 07:39PM

20
#131 - Benjamin Kiesl / @BenjaminKiesl

10/16/2018 at 12:24PM

20
#132 - Mihai / @mihaicristiant

12/03/2018 at 08:32AM

20
#133 - guxbug / @guxbug1

12/20/2018 at 03:13AM

20
#134 - Andreas Nordahl / @andreasnordahl

01/03/2019 at 11:41AM

20
#135 - 默罕默德 / @Rt6RjEAJ987Woes

02/18/2019 at 09:21AM

20
#136 - Titouan Teyssier / @TitouanT_

03/02/2019 at 01:38AM

20
#137 - cubemike / @cubemike

03/24/2019 at 06:15PM

20
#138 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 06:55AM

20
#139 - 김현수 / @flyhigh43

04/28/2019 at 06:36AM

20
#140 - Nick Yeow / @nickyeow

05/24/2019 at 02:46PM

21
#141 - YNWP / @ynw_P

08/27/2017 at 04:20AM

21
#142 - よんわ / @ynw_s

08/27/2017 at 04:24AM

21
#143 - Peter B / @l0wm4x

08/27/2017 at 05:37PM

21
#144 - Jan Bundesmann / @janbundesmann

08/28/2017 at 07:43AM

21
#145 - Song Zheng / @songz

08/29/2017 at 02:24AM

21
#146 - 杨洋 / @176795444

08/29/2017 at 10:50AM

21
#147 - hatoo / @hato2000

08/30/2017 at 07:36AM

21
#148 - dayshade / @dayshade_7

08/30/2017 at 02:51PM

21
#149 - lack / @lack84639857

09/08/2017 at 10:26AM

21
#150 - Jonathan Eidsness / @jonathaneidsnes

09/15/2017 at 05:34AM