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

263 active golfers, 964 entries

Leaderboard (lowest score wins):
25
#211 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:02AM

25
#212 - Jason Liang / @summerjacketx

09/05/2017 at 05:19AM

25
#213 - Herr Joschka / @HerrJoschka

10/19/2017 at 03:41AM

25
#214 - Ben Hill / @KaizenSoze70

12/04/2017 at 12:05PM

25
#215 - gerry / @ggaonag

03/31/2018 at 05:15PM

25
#216 - frank p / @icedearth55

05/12/2018 at 10:06AM

25
#217 - Kris Ezra / @kris_ezra

06/14/2018 at 04:27PM

25
#218 - mass / @mass256

07/09/2018 at 05:38AM

26
#219 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 06:58PM

26
#220 - Sebastian Korten / @FlashKorten

10/28/2017 at 10:53AM

26
#221 - Михаил Сурин / @realssmike

12/17/2017 at 03:32AM

26
#222 - Aaron Williamson / @TheFunkOverlord

03/21/2018 at 08:45PM

26
#223 - Dylan Nelson / @dlnnlsn

06/08/2018 at 04:22AM

26
#224 - vg / @vg53210350

10/29/2018 at 03:03AM

27
#225 - Charlie OConor / @charlieoconor

09/20/2017 at 08:24PM

27
#226 - Bart Kleijngeld / @BartKleijngeld

12/01/2017 at 11:38AM

27
#227 - Zach Starkebaum / @rebelzach

03/03/2018 at 04:25PM

27
#228 - prince ducaca / @prince_du_caca

09/26/2018 at 10:26PM

28
#229 - Yousef Mohamed / @MohamedYoyo94

02/23/2018 at 11:11AM

28
#230 - Shunichi Kanade / @shunkana

12/02/2018 at 09:37AM

29
#231 - Marc / @Fusselgesicht

10/14/2017 at 10:23PM

29
#232 - 梅干 / @Umeboshi_9

11/10/2017 at 03:47PM

29
#233 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:32PM

29
#234 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 03:56AM

29
#235 - Kyle Safran / @kylesafran

01/22/2019 at 08:52PM

30
#236 - Rodrigo Santa Cruz / @rstcruzo

10/16/2017 at 04:09AM

30
#237 - martin tourneboeuf / @martintournebo1

07/01/2018 at 07:16PM

30
#238 - Joao Figueiredo / @j1fig

07/05/2018 at 03:12PM

31
#239 - David / @Latiku

08/28/2017 at 07:49PM

31
#240 - Omar M. Ali / @OmarMMAli

10/30/2017 at 09:04PM