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

345 active golfers, 1333 entries

Leaderboard (lowest score wins):
20
#151 - cubemike / @cubemike

03/24/2019 at 06:15PM

20
#152 - wanghbxxxx / @wanghbxxxx

04/06/2019 at 06:55AM

20
#153 - 김현수 / @flyhigh43

04/28/2019 at 06:36AM

20
#154 - Nick Yeow / @nickyeow

05/24/2019 at 02:46PM

20
#155 - mkaminaga / @mkmng3

06/28/2019 at 09:05AM

20
#156 - Chester Yap / @Chest_ErYap

07/14/2019 at 02:06AM

20
#157 - Markus / @ARealAnnoyance

07/26/2019 at 06:36PM

20
#158 - Matt Vaughn / @mattttvaughn

08/04/2019 at 03:08AM

20
#159 - sooqua / @sooqua

08/08/2019 at 09:39PM

20
#160 - Baine Wedlock / @BaineWedlock

09/25/2019 at 12:34PM

20
#161 - Rui Xue / @ruirayxue

10/01/2019 at 02:08PM

20
#162 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 11:49AM

20
#163 - Miko / @_m_ik_o_

10/12/2019 at 05:39PM

20
#164 - leo / @leo28356948

10/28/2019 at 01:00PM

20
#165 - Lory / @Lory46845742

11/08/2019 at 01:18PM

20
#166 - Melvin Cheung / @MelvinCheung

11/09/2019 at 04:50AM

20
#167 - Ivan Volosyuk / @IvanVolosyuk

11/10/2019 at 11:23AM

20
#168 - vicver09 / @vicver091

12/18/2019 at 12:14AM

20
#169 - hokonch / @hokonch

12/23/2019 at 03:34PM

20
#170 - Scott Smith / @Scottaino

01/03/2020 at 06:26PM

20
#171 - Jason Neylon / @jasonneylon

01/25/2020 at 10:30AM

20
#172 - Daniel Simionato / @weseven

01/26/2020 at 01:22PM

20
#173 - eshel / @EshelBM

02/27/2020 at 04:35PM

20
#174 - Wouter Horlings / @Achilleshiel

03/13/2020 at 06:52PM

20
#175 - floyd / @floyd10086

03/19/2020 at 07:08AM

20
#176 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/24/2020 at 09:33AM

21
#177 - YNWP / @ynw_P

08/27/2017 at 04:20AM

21
#178 - よんわ / @ynw_s

08/27/2017 at 04:24AM

21
#179 - Peter B / @l0wm4x

08/27/2017 at 05:37PM

21
#180 - Jan Bundesmann / @janbundesmann

08/28/2017 at 07:43AM