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 394 remaining solutions by signing in and submitting your own entry
#395 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

395 active golfers, 1699 entries

Leaderboard (lowest score wins):
15
#181 - Blah Blah / @BlahBla08410389

01/19/2019 at 05:48PM

15
#182 - tp971 / @tp971

01/30/2019 at 09:36PM

15
#183 - r / @revanthedarth

02/09/2019 at 03:36AM

15
#184 - noisevoid / @noisevoid

02/26/2019 at 04:26PM

15
#185 - algebraic-geometric / @algebraicgeome1

02/26/2019 at 07:06PM

15
#186 - Amado Antonini / @AmadoAntonini

03/12/2019 at 10:41PM

15
#187 - Sherab Giovannini / @shaddycls

05/01/2019 at 05:51PM

15
#188 - Banos / @deep_spoon

06/07/2019 at 12:52PM

15
#189 - Paweł Styczewski / @kryspuss

06/13/2019 at 11:52AM

15
#190 - Reportados123 / @reportados123

06/25/2019 at 08:22PM

16
#191 - DustVoice / @DustVoice

09/17/2018 at 09:51PM

16
#192 - Roch Mirabeau / @roch_kiss

09/19/2018 at 11:55PM

16
#193 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM

16
#194 - Jordan / @RiotChomey

09/21/2018 at 09:30PM

16
#195 - Jeff / @sir_wiggles3

09/24/2018 at 11:34PM

16
#196 - adeel hussain / @adeelhussain

09/25/2018 at 07:47AM

16
#197 - Bruce Adams / @bruceadams1054

10/08/2018 at 10:32AM

16
#198 - caplod / @caplod

10/16/2018 at 10:22PM

16
#199 - vg / @vg53210350

10/28/2018 at 06:42PM

16
#200 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 04:27PM

16
#201 - Maas Lalani / @maaslalani

12/02/2018 at 08:54PM

16
#202 - lofoneax / @lofoneax

12/14/2018 at 10:17PM

16
#203 - Shafiq Jetha / @sjetha

12/18/2018 at 05:55PM

16
#204 - John Smith / @JohnSmi14480159

01/09/2019 at 10:45PM

16
#205 - Patrick Lavin / @LavinComputes

01/30/2019 at 05:21PM

16
#206 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 06:38AM

16
#207 - Alessio / @aleb1an

03/09/2019 at 10:02PM

16
#208 - 김형창 / @uVmEMZsCgcYvqZi

04/04/2019 at 02:36AM

16
#209 - Caleb Rollins / @CalebRollins1

05/16/2019 at 08:39PM

16
#210 - marco / @helmetk

06/06/2019 at 01:47PM