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 19 remaining solutions by signing in and submitting your own entry
#20 ShookerAndBeta / @Shooker2012 - Score: 64 - 06/02/22 @ 09:33
C1<Esc>qqYp:s/\v(.)\1*/\=strlen(submatch(0)))<BS>.submatch(1)/g<CR>q13@qZZ

0 comments


Created by: @mcr05

20 active golfers, 26 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

43
#13 - Jerry Wu / @AzureSpectra

05/03/2017 at 03:25PM

43
#14 - Sxcy / @SxcyX

10/23/2018 at 08:39PM

43
#15 - Malcolm Sharpe / @blueblimpms

08/10/2019 at 08:14PM

43
#16 - Miłosz Łakomy / @foobar01123

01/04/2020 at 01:56AM

43
#17 - Fabrizio Perria / @FPerria

12/22/2020 at 08:56AM

43
#18 - Peppa Pig / @PeppaPi95550250

07/03/2024 at 02:07AM

43
#19 - nickGPT / @nickandbro

08/28/2024 at 04:26AM

64
#20 - ShookerAndBeta / @Shooker2012

06/02/2022 at 09:33AM