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

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

764 active golfers, 3410 entries

Solutions by @tkarandi:
12
#67 - Tamás Kárándi / @tkarandi

10/19/2019 at 07:50PM

12
#>67 - Tamás Kárándi / @tkarandi

10/19/2019 at 07:50PM

13
#>248 - Tamás Kárándi / @tkarandi

10/19/2019 at 07:49PM

14
#>348 - Tamás Kárándi / @tkarandi

10/19/2019 at 07:47PM

15
#>384 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:45PM

16
#>437 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:44PM

19
#>561 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:30PM

22
#>587 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:28PM

32
#>687 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:23PM

35
#>701 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:20PM

39
#>709 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:13PM

43
#>718 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:11PM

45
#>724 - Tamás Kárándi / @tkarandi

10/19/2019 at 06:09PM