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):
22
#181 - BouboulouVimGolf / @BouboulouVG

10/31/2017 at 04:41PM

22
#182 - Dominic Z / @thammaaa

12/21/2017 at 09:59AM

22
#183 - Rakesh P / @rakeshpgopal

04/29/2018 at 08:33AM

22
#184 - Tom Smeding / @TomSmeding

11/05/2018 at 10:47PM

22
#185 - T A / @SirAviles

02/15/2019 at 10:50PM

22
#186 - Ivo Blöchliger / @aigledesalpes

08/04/2019 at 08:28PM

22
#187 - Chris Shorrock / @EbinFlow

08/20/2019 at 02:06PM

22
#188 - Masi Valkonen / @masivalkonen

08/28/2019 at 06:50AM

23
#189 - Justin Wyne / @wyne

08/27/2017 at 01:09AM

23
#190 - James / @Dronak

08/27/2017 at 01:24AM

23
#191 - Derek Schrock / @derekschrock

08/27/2017 at 09:17AM

23
#192 - Jimmy C / @jimmehc

08/31/2017 at 07:01AM

23
#193 - Gurukandhamoorthi / @Gurukandhamoor1

09/02/2017 at 05:01PM

23
#194 - lujianmei / @lujianmei

09/05/2017 at 08:49AM

23
#195 - Koo Zhengqun / @zhengqunkoo

09/08/2017 at 02:40PM

23
#196 - Alex / @alexhod08054568

09/10/2017 at 05:52PM

23
#197 - Jasper Armstrong / @jasperarmstrong

09/14/2017 at 10:47AM

23
#198 - Alphonso De La Morte / @FatDrakula

09/17/2017 at 12:22PM

23
#199 - Conrad / @Conrad55084958

09/17/2017 at 01:57PM

23
#200 - Maciek Wcislik / @inoutin

09/19/2017 at 12:55PM

23
#201 - Andrew's Testing / @andrewwwtest

09/19/2017 at 09:56PM

23
#202 - Diego Roccia / @rocciadiego

09/19/2017 at 10:02PM

23
#203 - Alex Coventry / @AlexCoventry4

09/21/2017 at 12:21AM

23
#204 - Tim Varley / @varleti

09/25/2017 at 04:22PM

23
#205 - Elton Kamami / @pixel_grid

10/07/2017 at 07:24PM

23
#206 - Felipe Apostol / @flipjsio

10/08/2017 at 05:52PM

23
#207 - Jason Stidd / @jd_stidd

10/10/2017 at 08:33PM

23
#208 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 03:28PM

23
#209 - Seybol / @Seybol_

10/14/2017 at 11:06PM

23
#210 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 12:15AM