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

Com(m)a Trouble

Someone was real stupid when placing his commas. Can you fix it?

Start file
,0,1,2,3,4,5,6,7,89
,1,2,3,4,5,6,7,8,90
,2,3,4,5,6,7,8,9,01
,3,4,5,6,7,8,9,0,12
,4,5,6,7,8,9,0,1,23
56,7,8,9,0,1,2,3,4,
67,8,9,0,1,2,3,4,5,
78,9,0,1,2,3,4,5,6,
89,0,1,2,3,4,5,6,7,
90,1,2,3,4,5,6,7,8,
End file
0,1,2,3,4,5,6,7,8,9
1,2,3,4,5,6,7,8,9,0
2,3,4,5,6,7,8,9,0,1
3,4,5,6,7,8,9,0,1,2
4,5,6,7,8,9,0,1,2,3
5,6,7,8,9,0,1,2,3,4
6,7,8,9,0,1,2,3,4,5
7,8,9,0,1,2,3,4,5,6
8,9,0,1,2,3,4,5,6,7
9,0,1,2,3,4,5,6,7,8

View Diff

1,10c1,10
< ,0,1,2,3,4,5,6,7,89
< ,1,2,3,4,5,6,7,8,90
< ,2,3,4,5,6,7,8,9,01
< ,3,4,5,6,7,8,9,0,12
< ,4,5,6,7,8,9,0,1,23
< 56,7,8,9,0,1,2,3,4,
< 67,8,9,0,1,2,3,4,5,
< 78,9,0,1,2,3,4,5,6,
< 89,0,1,2,3,4,5,6,7,
< 90,1,2,3,4,5,6,7,8,
---
> 0,1,2,3,4,5,6,7,8,9
> 1,2,3,4,5,6,7,8,9,0
> 2,3,4,5,6,7,8,9,0,1
> 3,4,5,6,7,8,9,0,1,2
> 4,5,6,7,8,9,0,1,2,3
> 5,6,7,8,9,0,1,2,3,4
> 6,7,8,9,0,1,2,3,4,5
> 7,8,9,0,1,2,3,4,5,6
> 8,9,0,1,2,3,4,5,6,7
> 9,0,1,2,3,4,5,6,7,8

Solutions by @dmcdona:

Unlock 14 remaining solutions by signing in and submitting your own entry
Created by: @DustVoice

865 active golfers, 3823 entries

Solutions by @dmcdona:
12
#35 - David McDonald / @dmcdona

05/19/2019 at 04:06AM

13
#>245 - David McDonald / @dmcdona

05/19/2019 at 04:05AM

14
#>381 - David McDonald / @dmcdona

05/19/2019 at 04:04AM

15
#>427 - David McDonald / @dmcdona

05/19/2019 at 04:03AM

16
#>473 - David McDonald / @dmcdona

05/19/2019 at 04:01AM

17
#>541 - David McDonald / @dmcdona

05/19/2019 at 04:00AM

18
#>593 - David McDonald / @dmcdona

05/19/2019 at 03:59AM

23
#>674 - David McDonald / @dmcdona

05/19/2019 at 03:57AM

28
#>727 - David McDonald / @dmcdona

05/19/2019 at 03:53AM

29
#>743 - David McDonald / @dmcdona

05/19/2019 at 03:50AM

31
#>770 - David McDonald / @dmcdona

05/19/2019 at 03:48AM

32
#>776 - David McDonald / @dmcdona

05/19/2019 at 03:46AM

43
#>811 - David McDonald / @dmcdona

05/19/2019 at 03:38AM

44
#>815 - David McDonald / @dmcdona

05/19/2019 at 03:30AM