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 7 remaining solutions by signing in and submitting your own entry
#8 Martin Delille / @martinodelilo - Score: 55 - 08/22/19 @ 08:48
qaA<C-R>r<Esc>qqn:let @r=3-@r<CR>qqqyyp"ryl:s/\d/&@a@n/g<CR>D@"q9@qZZ

0 comments


Created by: @TitouanT_

8 active golfers, 16 entries

Leaderboard (lowest score wins):
37
#1 - Peppa Pig / @PeppaPigSg

07/02/2024 at 07:53AM

38
#2 - 𝚃𝚒𝚝𝚘𝚞𝚊𝚗 𝚃𝚎𝚢𝚜𝚜𝚒𝚎𝚛 / @TitouanT_

03/31/2019 at 04:08PM

39
#3 - John Braxler / @braxler

08/05/2024 at 03:28PM

39
#4 - nickGPT / @nickandbro

08/24/2024 at 10:48PM

50
#5 - Dan / @dstein64

03/31/2019 at 03:13AM

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

03/31/2019 at 03:36AM

50
#7 - k24w24 / @k24w24

04/04/2019 at 05:25AM

55
#8 - Martin Delille / @martinodelilo

08/22/2019 at 08:48AM