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

271 active golfers, 1001 entries

Leaderboard (lowest score wins):
24
#211 - danmakenoise / @danmakenoise

03/17/2018 at 12:36PM

24
#212 - Moritz Manner / @moritz_manner

03/17/2018 at 07:29PM

24
#213 - 서강훈 / @shirano150

04/05/2018 at 05:58AM

24
#214 - Gemille Ford / @gemilleford

07/03/2018 at 12:48AM

24
#215 - 최종원 / @lastone9182

07/17/2018 at 02:38PM

24
#216 - Bennett / @bennettbackward

12/20/2018 at 01:23PM

25
#217 - Rachel Murray / @RachelMurray11

08/28/2017 at 11:02AM

25
#218 - Jason Liang / @summerjacketx

09/05/2017 at 05:19AM

25
#219 - Herr Joschka / @HerrJoschka

10/19/2017 at 03:41AM

25
#220 - Ben Hill / @KaizenSoze70

12/04/2017 at 12:05PM

25
#221 - gerry / @ggaonag

03/31/2018 at 05:15PM

25
#222 - frank p / @icedearth55

05/12/2018 at 10:06AM

25
#223 - Kris Ezra / @kris_ezra

06/14/2018 at 04:27PM

25
#224 - mass / @mass256

07/09/2018 at 05:38AM

26
#225 - Joachim Nielandt / @joachimnielandt

09/30/2017 at 06:58PM

26
#226 - Sebastian Korten / @FlashKorten

10/28/2017 at 10:53AM

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

12/17/2017 at 03:32AM

26
#228 - Aaron Williamson / @TheFunkOverlord

03/21/2018 at 08:45PM

26
#229 - Dylan Nelson / @dlnnlsn

06/08/2018 at 04:22AM

26
#230 - vg / @vg53210350

10/29/2018 at 03:03AM

26
#231 - tenteke / @kuskus3

02/27/2019 at 02:57PM

27
#232 - Charlie OConor / @charlieoconor

09/20/2017 at 08:24PM

27
#233 - Bart Kleijngeld / @BartKleijngeld

12/01/2017 at 11:38AM

27
#234 - Zach Starkebaum / @rebelzach

03/03/2018 at 04:25PM

27
#235 - prince ducaca / @prince_du_caca

09/26/2018 at 10:26PM

28
#236 - Yousef Mohamed / @MohamedYoyo94

02/23/2018 at 11:11AM

28
#237 - Shunichi Kanade / @shunkana

12/02/2018 at 09:37AM

28
#238 - zenwalker / @zenwalker93

03/10/2019 at 04:36PM

29
#239 - Marc / @Fusselgesicht

10/14/2017 at 10:23PM

29
#240 - 梅干 / @Umeboshi_9

11/10/2017 at 03:47PM