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

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

821 active golfers, 3654 entries

Solutions by @zacoxi:
12
#3 - Dax / @zacoxi

11/20/2018 at 01:18AM

12
#>58 - Dax / @zacoxi

08/22/2019 at 03:33AM

12
#>58 - Dax / @zacoxi

08/22/2019 at 03:36AM

13
#>197 - Dax / @zacoxi

10/21/2018 at 06:25AM

13
#>258 - Dax / @zacoxi

08/22/2019 at 03:41AM

14
#>347 - Dax / @zacoxi

10/21/2018 at 06:24AM

14
#>371 - Dax / @zacoxi

08/22/2019 at 03:40AM

15
#>393 - Dax / @zacoxi

10/12/2018 at 07:36AM

16
#>439 - Dax / @zacoxi

10/12/2018 at 07:33AM

18
#>580 - Dax / @zacoxi

12/11/2020 at 07:39AM

42
#>765 - Dax / @zacoxi

10/04/2018 at 01:34PM