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

291 active golfers, 1083 entries

Leaderboard (lowest score wins):
26
#241 - Sebastian Korten / @FlashKorten

10/28/2017 at 10:53AM

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

12/17/2017 at 03:32AM

26
#243 - Aaron Williamson / @TheFunkOverlord

03/21/2018 at 08:45PM

26
#244 - Dylan Nelson / @dlnnlsn

06/08/2018 at 04:22AM

26
#245 - vg / @vg53210350

10/29/2018 at 03:03AM

26
#246 - tenteke / @kuskus3

02/27/2019 at 02:57PM

27
#247 - Charlie OConor / @charlieoconor

09/20/2017 at 08:24PM

27
#248 - Bart Kleijngeld / @BartKleijngeld

12/01/2017 at 11:38AM

27
#249 - Zach Starkebaum / @rebelzach

03/03/2018 at 04:25PM

27
#250 - prince ducaca / @prince_du_caca

09/26/2018 at 10:26PM

28
#251 - Yousef Mohamed / @MohamedYoyo94

02/23/2018 at 11:11AM

28
#252 - Shunichi Kanade / @shunkana

12/02/2018 at 09:37AM

28
#253 - zenwalker / @zenwalker93

03/10/2019 at 04:36PM

28
#254 - JvdB01 / @JvdB001

05/08/2019 at 08:29PM

29
#255 - Marc / @Fusselgesicht

10/14/2017 at 10:23PM

29
#256 - 梅干 / @Umeboshi_9

11/10/2017 at 03:47PM

29
#257 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 04:32PM

29
#258 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 03:56AM

29
#259 - Kyle Safran / @kylesafran

01/22/2019 at 08:52PM

29
#260 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 09:25AM

30
#261 - Rodrigo Santa Cruz / @rstcruzo

10/16/2017 at 04:09AM

30
#262 - martin tourneboeuf / @martintournebo1

07/01/2018 at 07:16PM

30
#263 - Joao Figueiredo / @j1fig

07/05/2018 at 03:12PM

30
#264 - albalitz / @_albalitz

06/05/2019 at 08:51AM

31
#265 - David / @Latiku

08/28/2017 at 07:49PM

31
#266 - Omar M. Ali / @OmarMMAli

10/30/2017 at 09:04PM

31
#267 - Ano Nym / @AnoNym39473378

08/18/2018 at 01:26PM

31
#268 - Tuomas Jokioja / @TJokioja

10/16/2018 at 08:08AM

31
#269 - deHman89 / @danho89

06/05/2019 at 08:57AM

32
#270 - かりうむ / @ka1l

11/15/2017 at 11:35AM