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 296 remaining solutions by signing in and submitting your own entry
#297 minjikim / @minjiki38685196 - Score: 92 - 10/10/18 @ 13:04
:<Up><Up><Up>g<Up><Up>/<BS>!/g<BS><CR>:g/<BS>!/^,/normal ^n<BS>0<BS>a,<BS><BS><BS>$x^a,<CR>:<Up><BS><BS><BS><BS><BS>^x$i,<CR>u:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><CR>:<0xe3><0x85><0x88><0xe3><0x85><0x82><BS><BS>wq<CR>

0 comments


Created by: @DustVoice

297 active golfers, 1277 entries

Leaderboard (lowest score wins):
14
#121 - slithy2000 / @slithy2000

11/12/2018 at 09:37AM

14
#122 - Michael Rose / @mdroseDev

11/23/2018 at 12:44AM

14
#123 - Joeoe / @joeoe_

11/24/2018 at 03:05PM

14
#124 - samsuma000 / @samsuma000

11/27/2018 at 10:20PM

14
#125 - diwa / @Di_nate_

12/06/2018 at 10:00AM

14
#126 - alex m / @al_mk_

12/10/2018 at 08:04PM

14
#127 - Parsa Amini / @ParsaAmini

03/19/2019 at 04:15PM

14
#128 - TheMagzuz / @DamMarkus

05/17/2019 at 04:33PM

14
#129 - Nick Yeow / @nickyeow

05/22/2019 at 01:19PM

15
#130 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#131 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#132 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#133 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM

15
#134 - Keyboard Fire / @KeyboardFire

10/06/2018 at 08:12PM

15
#135 - 王有铭 / @coder_ming

10/21/2018 at 06:13AM

15
#136 - Adam / @askoufish

10/23/2018 at 05:12AM

15
#137 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:14AM

15
#138 - succcubbus / @succcubbus

11/20/2018 at 10:19PM

15
#139 - Oren Koriat / @KoriatOren

12/04/2018 at 04:01PM

15
#140 - mathestar / @mathestar

12/11/2018 at 12:05PM

15
#141 - Blah Blah / @BlahBla08410389

01/19/2019 at 05:48PM

15
#142 - tp971 / @tp971

01/30/2019 at 09:36PM

15
#143 - r / @revanthedarth

02/09/2019 at 03:36AM

15
#144 - noisevoid / @noisevoid

02/26/2019 at 04:26PM

15
#145 - algebraic-geometric / @algebraicgeome1

02/26/2019 at 07:06PM

15
#146 - Amado Antonini / @AmadoAntonini

03/12/2019 at 10:41PM

15
#147 - Sherab Giovannini / @shaddycls

05/01/2019 at 05:51PM

16
#148 - DustVoice / @DustVoice

09/17/2018 at 09:51PM

16
#149 - Roch Mirabeau / @roch_kiss

09/19/2018 at 11:55PM

16
#150 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM