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

302 active golfers, 1143 entries

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

04/16/2018 at 02:59AM

20
#122 - Justin Hoyt / @JustinHoyt24

05/04/2018 at 03:14PM

20
#123 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 08:36PM

20
#124 - Lifepillar / @lifepillar

05/06/2018 at 07:42PM

20
#125 - Martin H Juliussen / @martinjuliussen

05/11/2018 at 07:30PM

20
#126 - Aunt Jovie / @auntjovie

05/14/2018 at 10:06PM

20
#127 - Jonathan Camilleri / @Too_Many_Taken

05/24/2018 at 01:43PM

20
#128 - Henry Woolenthorpe / @woolenthorpe

07/04/2018 at 01:45AM

20
#129 - yqu212 / @yqu212

07/27/2018 at 05:39AM

20
#130 - David Findley / @thefindley

09/07/2018 at 03:34AM

20
#131 - royer / @RoyerMoyer1

09/23/2018 at 05:49PM

20
#132 - Brendan B Amdocs / @AmdocsB

09/28/2018 at 03:27PM

20
#133 - Roger Bongers / @RogerBongers

10/05/2018 at 07:39PM

20
#134 - Benjamin Kiesl / @BenjaminKiesl

10/16/2018 at 12:24PM

20
#135 - Mihai / @mihaicristiant

12/03/2018 at 08:32AM

20
#136 - guxbug / @guxbug1

12/20/2018 at 03:13AM

20
#137 - Andreas Nordahl / @andreasnordahl

01/03/2019 at 11:41AM

20
#138 - 默罕默德 / @Rt6RjEAJ987Woes

02/18/2019 at 09:21AM

20
#139 - Titouan Teyssier / @TitouanT_

03/02/2019 at 01:38AM

20
#140 - cubemike / @cubemike

03/24/2019 at 06:15PM

20
#141 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 06:55AM

20
#142 - 김현수 / @flyhigh43

04/28/2019 at 06:36AM

20
#143 - Nick Yeow / @nickyeow

05/24/2019 at 02:46PM

20
#144 - mkaminaga / @mkmng3

06/28/2019 at 09:05AM

20
#145 - Chester Yap / @Chest_ErYap

07/14/2019 at 02:06AM

20
#146 - Markus / @ARealAnnoyance

07/26/2019 at 06:36PM

20
#147 - Matt Vaughn / @mattttvaughn

08/04/2019 at 03:08AM

20
#148 - sooqua / @sooqua

08/08/2019 at 09:39PM

20
#149 - Baine Wedlock / @BaineWedlock

09/25/2019 at 12:34PM

20
#150 - Rui Xue / @ruirayxue

10/01/2019 at 02:08PM