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

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

821 active golfers, 3654 entries

Solutions by @BaerKlondike:
12
#65 - KlondikeBaer / @BaerKlondike

10/14/2019 at 08:45PM

13
#>265 - KlondikeBaer / @BaerKlondike

10/14/2019 at 08:44PM

14
#>373 - KlondikeBaer / @BaerKlondike

10/14/2019 at 08:05PM

15
#>410 - KlondikeBaer / @BaerKlondike

10/14/2019 at 08:03PM

16
#>466 - KlondikeBaer / @BaerKlondike

10/14/2019 at 08:00PM

19
#>598 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:58PM

21
#>618 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:57PM

24
#>655 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:56PM

25
#>665 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:55PM

28
#>696 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:53PM

31
#>732 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:03PM

31
#>732 - KlondikeBaer / @BaerKlondike

10/14/2019 at 07:10PM