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

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

725 active golfers, 3230 entries

Solutions by @bruncun:
12
#2 - Bruno Cunha / @bruncun

11/17/2018 at 07:37PM

13
#>177 - Bruno Cunha / @bruncun

11/17/2018 at 07:33PM

14
#>310 - Bruno Cunha / @bruncun

11/17/2018 at 07:32PM

15
#>350 - Bruno Cunha / @bruncun

11/17/2018 at 07:32PM

16
#>390 - Bruno Cunha / @bruncun

11/17/2018 at 07:31PM

19
#>525 - Bruno Cunha / @bruncun

11/17/2018 at 07:26PM

21
#>548 - Bruno Cunha / @bruncun

11/17/2018 at 07:25PM

24
#>572 - Bruno Cunha / @bruncun

11/17/2018 at 07:24PM

26
#>592 - Bruno Cunha / @bruncun

11/17/2018 at 07:23PM

27
#>600 - Bruno Cunha / @bruncun

11/17/2018 at 07:21PM

28
#>608 - Bruno Cunha / @bruncun

11/17/2018 at 07:19PM

29
#>622 - Bruno Cunha / @bruncun

11/17/2018 at 07:17PM

30
#>636 - Bruno Cunha / @bruncun

11/17/2018 at 07:16PM

31
#>644 - Bruno Cunha / @bruncun

11/17/2018 at 07:15PM

46
#>690 - Bruno Cunha / @bruncun

11/17/2018 at 07:07PM

81
#>716 - Bruno Cunha / @bruncun

11/17/2018 at 07:04PM