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 @008Genkai:

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

865 active golfers, 3823 entries

Solutions by @008Genkai:
12
#118 - 大矢元海 / @008Genkai

07/07/2020 at 08:13PM

12
#>118 - 大矢元海 / @008Genkai

07/07/2020 at 08:13PM

12
#>118 - 大矢元海 / @008Genkai

07/07/2020 at 08:14PM

13
#>312 - 大矢元海 / @008Genkai

07/07/2020 at 08:11PM

14
#>400 - 大矢元海 / @008Genkai

07/07/2020 at 08:10PM

15
#>441 - 大矢元海 / @008Genkai

07/07/2020 at 08:05PM

15
#>441 - 大矢元海 / @008Genkai

07/07/2020 at 08:07PM

16
#>505 - 大矢元海 / @008Genkai

07/07/2020 at 08:03PM

16
#>505 - 大矢元海 / @008Genkai

07/07/2020 at 08:04PM

17
#>570 - 大矢元海 / @008Genkai

07/07/2020 at 08:02PM

22
#>663 - 大矢元海 / @008Genkai

07/07/2020 at 08:01PM

24
#>692 - 大矢元海 / @008Genkai

07/07/2020 at 08:00PM

25
#>702 - 大矢元海 / @008Genkai

07/07/2020 at 07:59PM

28
#>735 - 大矢元海 / @008Genkai

07/07/2020 at 07:58PM

30
#>757 - 大矢元海 / @008Genkai

07/07/2020 at 07:54PM

30
#>757 - 大矢元海 / @008Genkai

07/07/2020 at 07:57PM

34
#>786 - 大矢元海 / @008Genkai

07/07/2020 at 08:07PM

84
#>856 - 大矢元海 / @008Genkai

07/07/2020 at 07:51PM