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):
19
#61 - Jeff / @sir_wiggles3

09/08/2018 at 07:54PM

19
#62 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 01:16PM

19
#63 - Dax / @zacoxi

10/29/2018 at 02:54AM

20
#64 - Jacob Buete / @JBuete

08/27/2017 at 03:24AM

20
#65 - ushumpei / @ushumpei_

08/27/2017 at 03:40AM

20
#66 - Vaughn Cato / @vaughncato

08/27/2017 at 04:25AM

20
#67 - meribold / @mribld

08/27/2017 at 09:00AM

20
#68 - Dmitry Zudochkin / @vredniy

08/27/2017 at 09:10AM

20
#69 - Cristian Lupașcu / @clupasq

08/27/2017 at 06:11PM

20
#70 - Sheldon Johnson / @sheldyjohnson

08/28/2017 at 12:47AM

20
#71 - adeel hussain / @adeelhussain

08/29/2017 at 06:14AM

20
#72 - Darren Weston / @dazWestonUK

08/29/2017 at 06:06PM

20
#73 - Ky Statham / @ijustwannacode

08/30/2017 at 06:18AM

20
#74 - bencvim / @bencvim

08/30/2017 at 11:44PM

20
#75 - Pedro Santos / @pedrosans

08/31/2017 at 08:10AM

20
#76 - Christian Stammen / @c0smiq

08/31/2017 at 01:03PM

20
#77 - Jesper Oskarsson / @jesosk

09/01/2017 at 06:05AM

20
#78 - joskarsson / @joskarsson7

09/01/2017 at 08:28AM

20
#79 - Solomon / @Trugbildjaeger

09/02/2017 at 01:46PM

20
#80 - albert / @albert67511150

09/07/2017 at 08:56PM

20
#81 - Cyhors / @Cyhors

09/13/2017 at 06:46AM

20
#82 - Petro Тrouq / @zulolosi

09/16/2017 at 11:37AM

20
#83 - jirgn / @jirgn

09/16/2017 at 04:35PM

20
#84 - elmoloves / @ElmoLovesSilly

09/19/2017 at 09:45PM

20
#85 - あっつぉ / @tadokorohitoshi

09/21/2017 at 08:51AM

20
#86 - Karamfil / @lz1aai

09/24/2017 at 09:01PM

20
#87 - Bonjew / @Bonjew_L

09/25/2017 at 06:29AM

20
#88 - Anne Pacalet / @_Anne_P

09/29/2017 at 09:18AM

20
#89 - Chris Atanasian / @ChrisAtanasian

10/03/2017 at 09:34PM

20
#90 - Anton Popov / @agraver

10/04/2017 at 02:38PM