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 @anantanni22:

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

729 active golfers, 3242 entries

Solutions by @anantanni22:
12
#6 - Anant Mishra / @anantanni22

12/08/2018 at 03:30PM

12
#>6 - Anant Mishra / @anantanni22

12/08/2018 at 03:31PM

12
#>6 - Anant Mishra / @anantanni22

12/08/2018 at 03:32PM

13
#>182 - Anant Mishra / @anantanni22

12/08/2018 at 03:29PM

14
#>315 - Anant Mishra / @anantanni22

12/08/2018 at 03:28PM

15
#>353 - Anant Mishra / @anantanni22

12/08/2018 at 03:25PM

16
#>392 - Anant Mishra / @anantanni22

12/08/2018 at 03:23PM

17
#>449 - Anant Mishra / @anantanni22

12/08/2018 at 03:22PM

18
#>502 - Anant Mishra / @anantanni22

12/08/2018 at 03:21PM

32
#>655 - Anant Mishra / @anantanni22

12/08/2018 at 03:18PM

66
#>717 - Anant Mishra / @anantanni22

12/08/2018 at 03:14PM