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 5c9f68afe73f870006154904

Kolakoski sequence -- level 2

This time, the line above describes the line below. Level 1 at: http://www.vimgolf.com/challenges/5c880211ab65cb00065c74eb

Start file
12
End file
12
122
12211
1221121
1221121221
122112122122112
12211212212211211221211
1221121221221121122121121221121121
12211212212211211221211212211211212212211212212112
122112122122112112212112122112112122122112122121121122122112122122112112122
12211212212211211221211212211211212212211212212112112212211212212211211212212112212211212212211211221211212212211

View Diff

1a2,11
> 122
> 12211
> 1221121
> 1221121221
> 122112122122112
> 12211212212211211221211
> 1221121221221121122121121221121121
> 12211212212211211221211212211211212212211212212112
> 122112122122112112212112122112112122122112122121121122122112122122112112122
> 12211212212211211221211212211211212212211212212112112212211212212211211212212112212211212212211211221211212212211

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 2 remaining solutions by signing in and submitting your own entry
#3 Daniel Steinberg / @dstein64 - Score: 50 - 03/31/19 @ 03:13
10o<Esc>{qqmm"ayl+$yl@aa<C-R>=@"==""?1:1+@"%2<CR><Esc>`m q336@qZZ

@TitouanT_: I didn't knew that we could use the ternary operator in vim ! thanks :)

1 comment


#4 🅷🅰🆁🆁🆈 / @HarryAAbrahams1 - Score: 50 - 03/31/19 @ 03:36
10o<Esc>{qqmm"ayl+$yl@aa<C-R>=@"==""?1:1+@"%2<CR><Esc>`m q336@qZZ

0 comments


#5 k24w24 / @k24w24 - Score: 50 - 04/04/19 @ 05:25
10o<Esc>{qqmm"ayl+$yl@aa<C-R>=@"==""?1:1+@"%2<CR><Esc>`m q336@qZZ

0 comments


Created by: @TitouanT_

5 active golfers, 9 entries

Leaderboard (lowest score wins):
38
#1 - Titouan Teyssier / @TitouanT_

03/31/2019 at 04:08PM

40
#2 - John Braxler / @braxler

07/11/2019 at 02:07PM

50
#3 - Daniel Steinberg / @dstein64

03/31/2019 at 03:13AM

50
#4 - 🅷🅰🆁🆁🆈 / @HarryAAbrahams1

03/31/2019 at 03:36AM

50
#5 - k24w24 / @k24w24

04/04/2019 at 05:25AM