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 57fbb753ab6108077204f440

7th Birthday

We have a bunch of numbers written from 0 to 9 in the order present in the text input file. The task is to create 7 by replacing the numbers with dashes.

Start file
12345678901234
23456789012345
34567890123456
45678901234567
56789012345678
67890123456789
78901234567890
89012345678901
90123456789012
End file
12-----------
2--56789012--5
3456789012--56
456789012--567
56789012--5678
6789012--56789
789012--567890
89012--5678901
9012--56789012

View Diff

1,9c1,9
< 12345678901234
< 23456789012345
< 34567890123456
< 45678901234567
< 56789012345678
< 67890123456789
< 78901234567890
< 89012345678901
< 90123456789012
---
> 12-----------
> 2--56789012--5
> 3456789012--56
> 456789012--567
> 56789012--5678
> 6789012--56789
> 789012--567890
> 89012--5678901
> 9012--56789012

Solutions by @mihaicristiant:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @pradeep6kumar

73 active golfers, 186 entries

Solutions by @mihaicristiant:
20
#23 - Mihai / @mihaicristiant

02/27/2019 at 02:39PM

21
#>26 - Mihai / @mihaicristiant

02/27/2019 at 02:38PM

22
#>33 - Mihai / @mihaicristiant

02/27/2019 at 02:37PM

23
#>42 - Mihai / @mihaicristiant

02/27/2019 at 02:32PM

23
#>42 - Mihai / @mihaicristiant

02/27/2019 at 02:36PM

25
#>51 - Mihai / @mihaicristiant

02/27/2019 at 02:31PM

25
#>51 - Mihai / @mihaicristiant

02/27/2019 at 02:35PM

26
#>55 - Mihai / @mihaicristiant

02/27/2019 at 02:29PM

27
#>57 - Mihai / @mihaicristiant

02/27/2019 at 02:29PM

28
#>64 - Mihai / @mihaicristiant

02/27/2019 at 02:26PM

30
#>70 - Mihai / @mihaicristiant

02/27/2019 at 02:25PM

33
#>72 - Mihai / @mihaicristiant

02/27/2019 at 02:25PM