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

Conway sequence

Generate the the first fifteen numbers. See here for more information: http://en.wikipedia.org/wiki/Look-and-say_sequence

Start file
submatch(
End file
1
11
21
1211
111221
312211
13112221
1113213211
31131211131221
13211311123113112211
11131221133112132113212221
3113112221232112111312211312113211
1321132132111213122112311311222113111221131221
11131221131211131231121113112221121321132132211331222113112211
311311222113111231131112132112311321322112111312211312111322212311322113212221

View Diff

1c1,15
< submatch(
---
> 1
> 11
> 21
> 1211
> 111221
> 312211
> 13112221
> 1113213211
> 31131211131221
> 13211311123113112211
> 11131221133112132113212221
> 3113112221232112111312211312113211
> 1321132132111213122112311311222113111221131221
> 11131221131211131231121113112221121321132132211331222113112211
> 311311222113111231131112132112311321322112111312211312111322212311322113212221

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 9 remaining solutions by signing in and submitting your own entry
#10 Stanislav / prstad - Score: 43 - 08/22/16 @ 21:51
C1<Esc>:t.|s/\v(.)\1*/\=len(<C-R>-0)).<C-R>-1)/g<CR>13@:ZZ

0 comments

#11 Andy Novocin / AndyNovocin - Score: 43 - 10/01/16 @ 12:14
C1<Esc>:t.|s/\(.\)\1*/\=len(<C-R>-0)).<C-R>-1)/g<CR>13@:ZZ

0 comments

#12 vvv / vvv71630351 - Score: 43 - 04/15/17 @ 14:40
C1<Esc>:t.|s/\(.\)\1*/\=len(<C-R>-0)).<C-R>-1)/g<CR>13@:ZZ

0 comments

Created by: mcr05

12 active golfers, 16 entries

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

03/05/2015 at 10:36PM

43
#2 - John Braxler / braxler

03/09/2015 at 02:43PM

43
#3 - Petro Тrouq / zulolosi

03/10/2015 at 02:35AM

43
#4 - José Rodrigues / jyrodrigues

07/18/2015 at 12:01AM

43
#5 - Joey / joeyism101

09/11/2015 at 02:34AM

43
#6 - Carsten Dreesbach / HerbCSO

10/22/2015 at 08:29AM

43
#7 - Kaue Silveira / kssilveira

11/26/2015 at 12:55AM

43
#8 - Smylers / Smylers2

02/17/2016 at 02:01PM

43
#9 - Nico Casar Gonzalez / gznicolas

05/03/2016 at 01:24AM

43
#10 - Stanislav / prstad

08/22/2016 at 09:51PM

43
#11 - Andy Novocin / AndyNovocin

10/01/2016 at 12:14PM

43
#12 - vvv / vvv71630351

04/15/2017 at 02:40PM