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

384 active golfers, 1542 entries

Leaderboard (lowest score wins):
22
#241 - The Valencian Dev / @thevalenciandev

10/13/2020 at 04:39PM

22
#242 - Brandon / @Brandon10678836

08/29/2022 at 12:29PM

22
#243 - someone / @IKvacenok

06/16/2023 at 12:55PM

23
#244 - Justin Wyne / @wyne

08/27/2017 at 01:09AM

23
#245 - James / @Dronak

08/27/2017 at 01:24AM

23
#246 - Derek Schrock / @derekschrock

08/27/2017 at 09:17AM

23
#247 - Jimmy C / @jimmehc

08/31/2017 at 07:01AM

23
#248 - Gurukandhamoorthi / @Gurukandhamoor1

09/02/2017 at 05:01PM

23
#249 - lujianmei / @lujianmei

09/05/2017 at 08:49AM

23
#250 - Koo Zhengqun / @zhengqunkoo

09/08/2017 at 02:40PM

23
#251 - Alex / @alexhod08054568

09/10/2017 at 05:52PM

23
#252 - Jasper Armstrong / @jasperarmstrong

09/14/2017 at 10:47AM

23
#253 - Alphonso De La Morte / @FatDrakula

09/17/2017 at 12:22PM

23
#254 - Conrad / @Conrad55084958

09/17/2017 at 01:57PM

23
#255 - Maciek Wcislik / @inoutin

09/19/2017 at 12:55PM

23
#256 - Andrew's Testing / @andrewwwtest

09/19/2017 at 09:56PM

23
#257 - Diego Roccia / @rocciadiego

09/19/2017 at 10:02PM

23
#258 - Alex Coventry / @AlexCoventry4

09/21/2017 at 12:21AM

23
#259 - ⚫ hgtp://Shifor 🛠️ / @shifor_gnome

09/25/2017 at 04:22PM

23
#260 - Elton Kamami / @pixel_grid

10/07/2017 at 07:24PM

23
#261 - Felipe Apostol / @flipjsio

10/08/2017 at 05:52PM

23
#262 - Jason Stidd / @jd_stidd

10/10/2017 at 08:33PM

23
#263 - Wolly Woodpecker / @WollyWoodpecker

10/13/2017 at 03:28PM

23
#264 - Seybol / @Seybol_

10/14/2017 at 11:06PM

23
#265 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 12:15AM

23
#266 - Daniel Hjelm / @dhjelm

10/22/2017 at 01:49PM

23
#267 - popo5colo / @popo5colo1

10/31/2017 at 06:08AM

23
#268 - Philippe / @cloonn1

11/02/2017 at 10:15PM

23
#269 - deepak / @utopianmonk

12/30/2017 at 01:36AM

23
#270 - Oleg Skillup / @skill_up

03/25/2018 at 07:54PM