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 65 remaining solutions by signing in and submitting your own entry
#66 Maciek Wcislik / inoutin - Score: 23 - 09/19/17 @ 12:55
qq/P<CR>yt<F=wPXldw$q3@qZZ

0 comments

#67 Andrew's Testing / andrewwwtest - Score: 23 - 09/19/17 @ 21:56
qq/P<CR>yt<Foviwphxjq3@qZZ

0 comments

#68 Diego Roccia / rocciadiego - Score: 23 - 09/19/17 @ 22:02
qq/P<CR>yt<Foviwphxjq3@qZZ

0 comments

#69 Alex Coventry / AlexCoventry4 - Score: 23 - 09/21/17 @ 00:21
qq/P<CR>yt<Foviwphxjq3@qZZ

0 comments

#70 David ROBIN / DavidRobin48 - Score: 24 - 08/27/17 @ 21:35
qq/P<CR>y2wF.PhxFPdbjq3@qZZ

0 comments

#71 Graham Bates / gigabates - Score: 24 - 09/15/17 @ 23:35
/\.<CR>qqyit4bvt.phxNq9@qZZ

0 comments

#72 Evan Relf / evanrelf - Score: 24 - 09/17/17 @ 04:19
qq/P<CR>wvyF.PFpdb~j@qq@qZZ

0 comments

#73 Rachel Murray / RachelMurray11 - Score: 25 - 08/28/17 @ 11:02
/P<CR>qq2ywFebdw"0PXnnq3@qZZ

0 comments

#74 Jason Liang / summerjacketx - Score: 25 - 09/05/17 @ 05:19
qq/P<CR>yt<Foviwphxjq3@q:wq<CR>

0 comments

#75 Ben Hill / KaizenSoze70 - Score: 26 - 09/18/17 @ 18:56
qq/P<CR>yt<2F"wcw<C-R>0<Esc>hxjq3@qZZ

0 comments

#76 Charlie OConor / charlieoconor - Score: 27 - 09/20/17 @ 20:24
:%s/ho\l*/Page1<CR>3<C-A>3kr33k<C-A>ZZ

0 comments

#77 David / Latiku - Score: 31 - 08/28/17 @ 19:49
:%s/homepage/Page1/<CR>3<C-A>3k2<C-A>3k<C-A>ZZ

0 comments

#78 Ítalo Vieira / italogvieira - Score: 34 - 09/11/17 @ 02:32
/ho.*"<CR>qqdgnly2whPhxa.html"<Esc>q3@qZZ

0 comments

#79 Shawn Axsom / ShawnAxsom - Score: 39 - 08/27/17 @ 23:59
:%g/hr/norm fPyt<FohPF xfhdt.<CR>:q<CR>:w<CR>:q<CR>

0 comments

#80 Nome / sensorario - Score: 64 - 09/21/17 @ 16:55
:%s/home<Esc><Esc><Esc><Esc>5G0wwwww$<Esc>qq0$bbbbbvbybbbbviwpi<BS><Esc>qjjj@qjjj@@jjj@@<Esc>ZZ

0 comments

#81 William Burns / _william_burns - Score: 70 - 09/20/17 @ 19:21
/ho<CR><Esc>xxxxxiP<Right><Right><Right>1<Esc>/ho<CR><Esc>xxxxxiP<Right><Right><Right>2<Esc>/ho<CR>xxxxxiP<Right><Right><Right>3<Esc>/ho<CR><Esc>xxxxxiP<Right><Right><Right>4<Esc>:x<CR>

0 comments

#82 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

82 active golfers, 248 entries

Leaderboard (lowest score wins):
18
#1 - Petro Тrouq / zulolosi

09/16/2017 at 12:21PM

19
#2 - Kerson Hsiao / KersonHsiao

08/31/2017 at 02:35AM

19
#3 - Saki Gw / Sakigw

08/31/2017 at 09:43AM

19
#4 - Virgil Ashruf / eSrem

08/31/2017 at 12:11PM

19
#5 - Kutsan Kaplan / kutsankaplan

08/31/2017 at 06:21PM

19
#6 - zava / znl1087

09/03/2017 at 08:54AM

19
#7 - John Braxler / braxler

09/06/2017 at 07:25PM

19
#8 - Vimgolf / vimgolf987

09/07/2017 at 09:40PM

19
#9 - Alejandro Catalina / AleexCatalina

09/10/2017 at 04:39PM

19
#10 - 郑晓东 / DGivxLTVopiOQap

09/12/2017 at 03:22AM

19
#11 - herbage / herbage2

09/13/2017 at 07:54AM

19
#12 - Alonzo / tolver_a

09/17/2017 at 08:59AM

19
#13 - Smylers / Smylers2

09/18/2017 at 12:38PM

19
#14 - how ja din / o157529

09/20/2017 at 03:41AM

19
#15 - Owen / owengeorge_

09/20/2017 at 06:59AM

19
#16 - Sean Moogan / Moogarillo

09/22/2017 at 03:23PM

19
#17 - Bibek Shah / Bibekshah

09/22/2017 at 08:05PM

19
#18 - Kristoffer Ahlqvist / ahlqvistk

09/24/2017 at 01:42PM

20
#19 - Jacob Buete / JBuete

08/27/2017 at 03:24AM

20
#20 - ushumpei / funnel_mune

08/27/2017 at 03:40AM

20
#21 - Vaughn Cato / vaughncato

08/27/2017 at 04:25AM

20
#22 - meribold / mribld

08/27/2017 at 09:00AM

20
#23 - Dmitry Zudochkin / vredniy

08/27/2017 at 09:10AM

20
#24 - Cristian Lupașcu / clupasq

08/27/2017 at 06:11PM

20
#25 - Sheldon Johnson / sheldyjohnson

08/28/2017 at 12:47AM

20
#26 - adeel hussain / adeelhussain

08/29/2017 at 06:14AM

20
#27 - Darren Weston / dazWestonUK

08/29/2017 at 06:06PM

20
#28 - Ky Statham / ijustwannacode

08/30/2017 at 06:18AM

20
#29 - bencvim / bencvim

08/30/2017 at 11:44PM

20
#30 - Pedro Santos / pedrosans

08/31/2017 at 08:10AM

20
#31 - Christian Stammen / c0smiq

08/31/2017 at 01:03PM

20
#32 - Jesper Oskarsson / jesosk

09/01/2017 at 06:05AM

20
#33 - joskarsson / joskarsson7

09/01/2017 at 08:28AM

20
#34 - Solomon / Trugbildjaeger

09/02/2017 at 01:46PM

20
#35 - albert / albert67511150

09/07/2017 at 08:56PM

20
#36 - Cyhors / Cyhors

09/13/2017 at 06:46AM

20
#37 - jirgn / jirgn

09/16/2017 at 04:35PM

20
#38 - elmoloves / ElmoLovesSilly

09/19/2017 at 09:45PM

20
#39 - あっつぉ / tadokorohitoshi

09/21/2017 at 08:51AM

21
#40 - YNWP / ynw_P

08/27/2017 at 04:20AM

21
#41 - よんわ / ynw_s

08/27/2017 at 04:24AM

21
#42 - Peter B / l0wm4x

08/27/2017 at 05:37PM

21
#43 - Jan Bundesmann / ixjab

08/28/2017 at 07:43AM

21
#44 - Song Zheng / songz

08/29/2017 at 02:24AM

21
#45 - 杨洋 / 176795444

08/29/2017 at 10:50AM

21
#46 - hatoo / hato2000

08/30/2017 at 07:36AM

21
#47 - Markus Blasl / dayshade_7

08/30/2017 at 02:51PM

21
#48 - lack / lack84639857

09/08/2017 at 10:26AM

21
#49 - Jonathan Eidsness / jonathaneidsnes

09/15/2017 at 05:34AM

21
#50 - Nelson Ruivo / stringbasic

09/19/2017 at 10:47PM

21
#51 - Rami Hovi / hacker_lawyer

09/20/2017 at 08:41PM

22
#52 - tPenguinLTG / tpenguinltg

08/27/2017 at 03:04AM

22
#53 - SirVimGolf / SirVimGolf

08/27/2017 at 02:14PM

22
#54 - tempo dooake / tempo_dooake

09/01/2017 at 01:09AM

23
#55 - Justin Wyne / wyne

08/27/2017 at 01:09AM

23
#56 - James / Dronak

08/27/2017 at 01:24AM

23
#57 - Derek Schrock / derekschrock

08/27/2017 at 09:17AM

23
#58 - Jimmy C / jimmehc

08/31/2017 at 07:01AM

23
#59 - Gurukandhamoorthi / Gurukandhamoor1

09/02/2017 at 05:01PM

23
#60 - lujianmei / lujianmei

09/05/2017 at 08:49AM

23
#61 - Koo Zhengqun / zhengqunkoo

09/08/2017 at 02:40PM

23
#62 - Alex / alexhod08054568

09/10/2017 at 05:52PM

23
#63 - Jasper Armstrong / jasperarmstrong

09/14/2017 at 10:47AM

23
#64 - Alphonso De La Morte / FatDrakula

09/17/2017 at 12:22PM

23
#65 - Conrad / Conrad55084958

09/17/2017 at 01:57PM

23
#66 - Maciek Wcislik / inoutin

09/19/2017 at 12:55PM

23
#67 - Andrew's Testing / andrewwwtest

09/19/2017 at 09:56PM

23
#68 - Diego Roccia / rocciadiego

09/19/2017 at 10:02PM

23
#69 - Alex Coventry / AlexCoventry4

09/21/2017 at 12:21AM

24
#70 - David ROBIN / DavidRobin48

08/27/2017 at 09:35PM

24
#71 - Graham Bates / gigabates

09/15/2017 at 11:35PM

24
#72 - Evan Relf / evanrelf

09/17/2017 at 04:19AM

25
#73 - Rachel Murray / RachelMurray11

08/28/2017 at 11:02AM

25
#74 - Jason Liang / summerjacketx

09/05/2017 at 05:19AM

26
#75 - Ben Hill / KaizenSoze70

09/18/2017 at 06:56PM

27
#76 - Charlie OConor / charlieoconor

09/20/2017 at 08:24PM

31
#77 - David / Latiku

08/28/2017 at 07:49PM

34
#78 - Ítalo Vieira / italogvieira

09/11/2017 at 02:32AM

39
#79 - Shawn Axsom / ShawnAxsom

08/27/2017 at 11:59PM

64
#80 - Nome / sensorario

09/21/2017 at 04:55PM

70
#81 - William Burns / _william_burns

09/20/2017 at 07:21PM

85
#82 - Daniel Rasmuson / danielrasmuson

09/06/2017 at 06:04AM