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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 535 remaining solutions by signing in and submitting your own entry
#536 Matej Stuchlik / @mstuchli - Score: 159 - 06/06/19 @ 16:21
<C-V>jjjjxpl.u.uuu<C-V>jjjj<Esc><Esc>kkkkqq<C-V>jjjjxpql@ql@@l@@l@@l@@l@@l@@l@@jjjjjhhhhhhhhhhhhhhhhhhhhllqq<C-V>jjjjxhhpqlll@qlll@@lll@@lll@@lll@@lll@@lll@@lll@@u@@u<C-V>jjjjxhp<Esc>:w<CR>:wqa<CR>

0 comments


Created by: @DustVoice

536 active golfers, 2336 entries

Leaderboard (lowest score wins):
31
#481 - ImaNotgate / @INotgate

04/28/2019 at 10:37PM

31
#482 - Floyd Gantt / @fgantt

06/28/2019 at 05:58PM

33
#483 - Brent Woo / @BrentPWoo

10/01/2018 at 07:40PM

33
#484 - Josh Dick / @_joshdick

06/06/2019 at 07:48PM

34
#485 - Jurica / @Jurica34581259

11/14/2018 at 11:16PM

34
#486 - Chris Lesage / @chrislesage

06/07/2019 at 04:02AM

34
#487 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 05:56PM

34
#488 - Christian / @paierlep

09/02/2019 at 07:33PM

34
#489 - Aaron / @aaronlichtman

09/24/2019 at 12:43PM

35
#490 - Raul / @Raul50174499

04/23/2019 at 05:38AM

35
#491 - Corey Alexander / @coreyja_dev

06/27/2019 at 03:35AM

35
#492 - Dmatrix / @Dr_Dmatrix

06/28/2019 at 06:30PM

35
#493 - Fritz Inf / @6360info

08/16/2019 at 06:30PM

36
#494 - throwaway / @throwaw77650361

03/05/2019 at 07:39PM

36
#495 - theBecwar / @thebecwar

08/18/2019 at 04:05PM

36
#496 - JS / @jjohsan

09/03/2019 at 03:07PM

36
#497 - damien / @GreatTestyTest

11/11/2019 at 12:04AM

38
#498 - xarfg / @xarphg

10/31/2018 at 01:14PM

38
#499 - Eric Moss / @NotEricMoss

11/04/2018 at 09:52PM

38
#500 - Jeff Anderson / @_j3ffrey

06/04/2019 at 11:19PM

38
#501 - 煮沸的白開水 / @season_303030

12/02/2019 at 08:25AM

41
#502 - freehaha / @freehaha

08/28/2019 at 05:14AM

42
#503 - Philip Stephenson / @philip_iv

07/19/2019 at 09:09PM

43
#504 - Tom Smeding / @TomSmeding

11/05/2018 at 10:27PM

43
#505 - Matze / @ebaharilikult

11/20/2018 at 07:16AM

44
#506 - Fabio Branquinho / @branquif

11/08/2018 at 12:36PM

44
#507 - Joe Francis / @lostapathy

01/13/2019 at 05:27PM

44
#508 - Bruce Park / @bpark0

03/11/2019 at 12:06AM

44
#509 - How It DO / @thatshowitdo

06/07/2019 at 03:19AM

44
#510 - Siddhartha [not giving away free coins] / @siddhartha_cryp

12/06/2019 at 08:57PM