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

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

865 active golfers, 3823 entries

Solutions by @o_lalonde:
12
#153 - Oli / @o_lalonde

07/10/2022 at 09:24PM

13
#>337 - Oli / @o_lalonde

07/10/2022 at 09:19PM

14
#>406 - Oli / @o_lalonde

07/10/2022 at 09:12PM

15
#>450 - Oli / @o_lalonde

07/10/2022 at 09:05PM

16
#>510 - Oli / @o_lalonde

07/10/2022 at 09:03PM

17
#>577 - Oli / @o_lalonde

07/10/2022 at 08:47PM

17
#>577 - Oli / @o_lalonde

07/10/2022 at 08:53PM

17
#>577 - Oli / @o_lalonde

07/10/2022 at 09:00PM

19
#>630 - Oli / @o_lalonde

07/10/2022 at 08:45PM

29
#>755 - Oli / @o_lalonde

07/10/2022 at 08:40PM

35
#>790 - Oli / @o_lalonde

07/10/2022 at 09:22PM

48
#>831 - Oli / @o_lalonde

07/10/2022 at 08:23PM