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):
25
#241 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:02AM

25
#242 - Jason Liang / @bummerjacket

09/05/2017 at 05:19AM

25
#243 - Herr Joschka / @HerrJoschka

10/19/2017 at 03:41AM

25
#244 - Ben Hill / @KaizenSoze70

12/04/2017 at 12:05PM

25
#245 - gerry / @ggaonag

03/31/2018 at 05:15PM

25
#246 - frank p / @icedearth55

05/12/2018 at 10:06AM

25
#247 - Kris Ezra / @kris_ezra

06/14/2018 at 04:27PM

25
#248 - mass / @mass256

07/09/2018 at 05:38AM

26
#249 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 06:58PM

26
#250 - Sebastian Korten / @FlashKorten

10/28/2017 at 10:53AM

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

12/17/2017 at 03:32AM

26
#252 - Aaron Williamson / @TheFunkOverlord

03/21/2018 at 08:45PM

26
#253 - Dylan Nelson / @dlnnlsn

06/08/2018 at 04:22AM

26
#254 - vg / @vg53210350

10/29/2018 at 03:03AM

26
#255 - tenteke / @kuskus3

02/27/2019 at 02:57PM

27
#256 - Charlie OConor / @charlieoconor

09/20/2017 at 08:24PM

27
#257 - Bart Kleijngeld / @BartKleijngeld

12/01/2017 at 11:38AM

27
#258 - Zach Starkebaum / @rebelzach

03/03/2018 at 04:25PM

27
#259 - prince ducaca / @prince_du_caca

09/26/2018 at 10:26PM

28
#260 - Yousef Mohamed / @MohamedYoyo94

02/23/2018 at 11:11AM

28
#261 - Shunichi Kanade / @shunkana

12/02/2018 at 09:37AM

28
#262 - zenwalker / @zenwalker93

03/10/2019 at 04:36PM

28
#263 - JvdB01 / @JvdB001

05/08/2019 at 08:29PM

29
#264 - Marc / @Fusselgesicht

10/14/2017 at 10:23PM

29
#265 - 梅干 / @Umeboshi_9

11/10/2017 at 03:47PM

29
#266 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:32PM

29
#267 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 03:56AM

29
#268 - Kyle Safran / @kylesafran

01/22/2019 at 08:52PM

29
#269 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 09:25AM

30
#270 - Rodrigo Santa Cruz / @rstcruzo

10/16/2017 at 04:09AM