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

325 active golfers, 1253 entries

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

07/26/2019 at 06:36PM

20
#152 - Matt Vaughn / @mattttvaughn

08/04/2019 at 03:08AM

20
#153 - sooqua / @sooqua

08/08/2019 at 09:39PM

20
#154 - Baine Wedlock / @BaineWedlock

09/25/2019 at 12:34PM

20
#155 - Rui Xue / @ruirayxue

10/01/2019 at 02:08PM

20
#156 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 11:49AM

20
#157 - Miko / @_m_ik_o_

10/12/2019 at 05:39PM

20
#158 - leo / @leo28356948

10/28/2019 at 01:00PM

20
#159 - Lory / @Lory46845742

11/08/2019 at 01:18PM

20
#160 - Melvin Cheung / @MelvinCheung

11/09/2019 at 04:50AM

20
#161 - Ivan Volosyuk / @IvanVolosyuk

11/10/2019 at 11:23AM

20
#162 - vicver09 / @vicver091

12/18/2019 at 12:14AM

20
#163 - hokonch / @hokonch

12/23/2019 at 03:34PM

20
#164 - Scott Smith / @Scottaino

01/03/2020 at 06:26PM

20
#165 - Jason Neylon / @jasonneylon

01/25/2020 at 10:30AM

20
#166 - Daniel Simionato / @weseven

01/26/2020 at 01:22PM

21
#167 - YNWP / @ynw_P

08/27/2017 at 04:20AM

21
#168 - よんわ / @ynw_s

08/27/2017 at 04:24AM

21
#169 - Peter B / @l0wm4x

08/27/2017 at 05:37PM

21
#170 - Jan Bundesmann / @janbundesmann

08/28/2017 at 07:43AM

21
#171 - Song Zheng / @songz

08/29/2017 at 02:24AM

21
#172 - 杨洋 / @176795444

08/29/2017 at 10:50AM

21
#173 - hatoo / @hato2000

08/30/2017 at 07:36AM

21
#174 - dayshade / @dayshade_7

08/30/2017 at 02:51PM

21
#175 - lack / @lack84639857

09/08/2017 at 10:26AM

21
#176 - Jonathan Eidsness / @jonathaneidsnes

09/15/2017 at 05:34AM

21
#177 - Nelson Ruivo / @stringbasic

09/19/2017 at 10:47PM

21
#178 - Rami Hovi / @hacker_lawyer

09/20/2017 at 08:41PM

21
#179 - MathijsHoogland / @MathijsHoogland

12/28/2017 at 05:43PM

21
#180 - GreenPinguin / @GreenPinguin2

03/08/2018 at 02:08PM