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):
30
#31 - Jacob Buete / @JBuete

07/04/2017 at 01:12PM

30
#32 - nickGPT / @nickandbro

08/28/2024 at 04:36AM

34
#33 - Andrew Joe / @andrewajoe

02/01/2015 at 06:20AM

35
#34 - Deepak Surti / @dmsurti

03/18/2015 at 09:03PM

36
#35 - 裏連 / @uraren_bot

02/02/2015 at 07:20AM

36
#36 - chvzvhn / @chvzvhn

03/30/2015 at 07:46PM

36
#37 - Michael Buckley / @apolatg

01/23/2018 at 08:06PM

37
#38 - Jake Eskel / @JakeEskel

02/03/2015 at 11:46PM

37
#39 - Oliver Christ / @0liverChrist

02/06/2015 at 11:48PM

37
#40 - Roberto Carraretto / @robcarraretto

01/27/2016 at 11:15PM

37
#41 - vg / @vg53210350

10/29/2018 at 12:39PM

38
#42 - Peter Flockhart / @FreshPeter_

02/26/2015 at 05:36PM

38
#43 - Ruslan / @DarkhanRus

03/27/2015 at 05:14PM

39
#44 - Joel Gallant / @joelg236

08/08/2015 at 04:40PM

40
#45 - Lieven Keersmaekers / @LievenKeersmaek

01/30/2015 at 06:40PM

40
#46 - Naseem Al-Naji / @NaseemAlnaji

02/14/2015 at 02:07AM

40
#47 - Thiago Prado / @5k1pp3r

03/11/2015 at 05:42PM

41
#48 - ZC-死理性派 / @zecyzhang

01/30/2015 at 05:40PM

41
#49 - Larry Battle / @LarryBattle

02/01/2015 at 07:54AM

42
#50 - Daniel V Stankevich / @standeo

02/05/2015 at 07:59AM

42
#51 - Gurukandhamoorthi / @Gurukandhamoor1

09/01/2017 at 03:13PM