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 54cb9296b2df9e000307809a

Winning streak

Make the number on each line equal the consecutive L's or W's.

Start file
W 1
W 1
W 1
L 1
L 1
W 1
L 1
L 1
L 1
W 1
W 1
W 1
L 1
W 1
W 1
W 1
W 1
L 1
L 1
L 1
End file
W 1
W 2
W 3
L 1
L 2
W 1
L 1
L 2
L 3
W 1
W 2
W 3
L 1
W 1
W 2
W 3
W 4
L 1
L 2
L 3

View Diff

2,4c2,3
< W 1
< W 1
< L 1
---
> W 2
> W 3
5a5
> L 2
8,11c8,9
< L 1
< L 1
< W 1
< W 1
---
> L 2
> L 3
12a11,12
> W 2
> W 3
15,19c15,17
< W 1
< W 1
< W 1
< L 1
< L 1
---
> W 2
> W 3
> W 4
20a19,20
> L 2
> L 3

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 49 remaining solutions by signing in and submitting your own entry
#50 Daniel V Stankevich / @standeo - Score: 42 - 02/05/15 @ 07:59
j<C-A>j2.jj1.3j1.j2.jj1.j2.3j1.j2.j3.jj1.j2.ZZ

0 comments


#51 Gurukandhamoorthi / @Gurukandhamoor1 - Score: 42 - 09/01/17 @ 15:13
j$<C-V>jg<C-A>3j<C-A>3j<C-C><C-C>jk<C-V>jg<C-A>3j<C-V>jg<C-A>4j<C-V>3jkg<C-A>Gll<C-V>kg<C-A>ZZ

0 comments


Created by: @udioica

51 active golfers, 135 entries

Leaderboard (lowest score wins):
21
#1 - Urtica dioica / @udioica

02/01/2015 at 12:56AM

21
#2 - John Braxler / @braxler

02/04/2015 at 06:15PM

21
#3 - Turkey Man / @lvturkeyman

12/18/2017 at 08:29AM

21
#4 - Peppa Pig / @PeppaPi95550250

06/23/2024 at 09:10AM

22
#5 - kimber gonzalez / @kimberlycreates

02/02/2015 at 07:30PM

23
#6 - Petro Тrouq / @zulolosi

02/01/2015 at 06:17AM

25
#7 - Carlos López / @morrizon

02/04/2015 at 06:08PM

25
#8 - Janzen / @__Coos

09/30/2022 at 03:01PM

26
#9 - Tim Chase / @gumnos

01/30/2015 at 06:23PM

26
#10 - Matt / @mcr05

01/31/2015 at 12:54PM

26
#11 - Pedro Santos / @pedrosans

02/03/2015 at 03:09PM

26
#12 - Michi Loro / @michiloro

02/04/2015 at 12:42PM

26
#13 - Jeremie / @jermoer

02/06/2015 at 04:52AM

26
#14 - Nolic / @cNolic

02/12/2015 at 05:25PM

26
#15 - xieyh11 / @xieyh11

02/13/2015 at 04:54AM

26
#16 - Carlos A Henríquez Q / @lagunex

02/14/2015 at 11:44PM

26
#17 - Michael Giuffrida / @mgiuffrida

02/24/2015 at 04:43AM

26
#18 - Ben Plantinga / @benplantinga

03/05/2015 at 06:53AM

26
#19 - pftb12345 / @pftb12345

04/07/2015 at 05:37AM

26
#20 - Walker Boh / @walker_boh

11/05/2015 at 03:59PM

26
#21 - Jon Krause / @jkrause314

01/24/2016 at 01:34AM

26
#22 - Bradley M. Small / @BradleySmall

11/23/2017 at 03:53AM

26
#23 - mevmev / @mevmev8

10/06/2021 at 11:32PM

27
#24 - Dane Summers / @dsummersl

01/31/2015 at 03:50AM

27
#25 - いっこつ / @eZb4

02/03/2015 at 06:56PM

27
#26 - César Enrique / @caenrique93

02/03/2015 at 11:02PM

27
#27 - Robin Moussu / @robin_moussu

03/30/2015 at 11:07AM

27
#28 - Robert Goeddel / @f0rdpr3fect

11/11/2015 at 11:39PM

29
#29 - Terence Hang / @technic_tec

02/13/2015 at 08:45AM

30
#30 - Hans Liu / @zhansliu

01/30/2015 at 04:07PM