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):
22
#151 - Tom Smeding / @TomSmeding

11/05/2018 at 10:47PM

23
#152 - Justin Wyne / @wyne

08/27/2017 at 01:09AM

23
#153 - James / @Dronak

08/27/2017 at 01:24AM

23
#154 - Derek Schrock / @derekschrock

08/27/2017 at 09:17AM

23
#155 - Jimmy C / @jimmehc

08/31/2017 at 07:01AM

23
#156 - Gurukandhamoorthi / @Gurukandhamoor1

09/02/2017 at 05:01PM

23
#157 - lujianmei / @lujianmei

09/05/2017 at 08:49AM

23
#158 - Koo Zhengqun / @zhengqunkoo

09/08/2017 at 02:40PM

23
#159 - Alex / @alexhod08054568

09/10/2017 at 05:52PM

23
#160 - Jasper Armstrong / @jasperarmstrong

09/14/2017 at 10:47AM

23
#161 - Alphonso De La Morte / @FatDrakula

09/17/2017 at 12:22PM

23
#162 - Conrad / @Conrad55084958

09/17/2017 at 01:57PM

23
#163 - Maciek Wcislik / @inoutin

09/19/2017 at 12:55PM

23
#164 - Andrew's Testing / @andrewwwtest

09/19/2017 at 09:56PM

23
#165 - Diego Roccia / @rocciadiego

09/19/2017 at 10:02PM

23
#166 - Alex Coventry / @AlexCoventry4

09/21/2017 at 12:21AM

23
#167 - Tim Varley / @varleti

09/25/2017 at 04:22PM

23
#168 - Elton Kamami / @pixel_grid

10/07/2017 at 07:24PM

23
#169 - Felipe Apostol / @flipjsio

10/08/2017 at 05:52PM

23
#170 - Jason Stidd / @jd_stidd

10/10/2017 at 08:33PM

23
#171 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 03:28PM

23
#172 - Seybol / @Seybol_

10/14/2017 at 11:06PM

23
#173 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 12:15AM

23
#174 - Daniel Hjelm / @dhjelm

10/22/2017 at 01:49PM

23
#175 - popo5colo / @popo5colo1

10/31/2017 at 06:08AM

23
#176 - Philippe / @cloonn1

11/02/2017 at 10:15PM

23
#177 - deepak / @utopianmonk

12/30/2017 at 01:36AM

23
#178 - Oleg Skillup / @skill_up

03/25/2018 at 07:54PM

23
#179 - matthew brett / @matthewbrett

03/26/2018 at 08:45AM

23
#180 - Noah Botimer / @botimer

04/15/2018 at 10:08AM