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 9v006652ccab000000000276

String decompression

3a4b2c => aaabbbbcc. Start a new line when you exceed 79 columns.

Start file
11344 134 576 116 566 116 574 134 2901 291 492 252 523 193 575 95 6313 1140

# vim:list:lcs=nbsp\:@
End file
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               

# vim:list:lcs=nbsp\:@

View Diff

1c1,40
< 11344 134 576 116 566 116 574 134 2901 291 492 252 523 193 575 95 6313 1140
---

>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                
>                                                                                

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 10 remaining solutions by signing in and submitting your own entry
#11 maharba6 / @maharba6 - Score: 64 - 06/16/24 @ 14:21
:set fo=m|s/\v(\d+)(.)/\=repeat(submatch(2),submatch(1))/g<CR>gqwZZ

0 comments


Created by: @maharba6

11 active golfers, 31 entries

Leaderboard (lowest score wins):
27
#1 - Valacar / @valacar

05/27/2024 at 03:24AM

27
#2 - Peppa Pig / @PeppaPigSg

05/27/2024 at 07:51AM

27
#3 - John Braxler / @braxler

05/28/2024 at 12:42PM

27
#4 - Aly Thobani / @alythobani

05/28/2024 at 06:13PM

27
#5 - Paul McDowell / @etothepi16

06/15/2024 at 06:06PM

27
#6 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

06/27/2024 at 05:37AM

27
#7 - nickGPT / @nickandbro

08/21/2024 at 08:09PM

27
#8 - got_windy / @insomnight

11/06/2024 at 01:22AM

29
#9 - Jean George / @JeanGeo20504212

05/27/2024 at 12:49AM

32
#10 - NotWearingPants / @NotWearingPants

08/05/2024 at 12:34AM

64
#11 - maharba6 / @maharba6

06/16/2024 at 02:21PM