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

436 active golfers, 1848 entries

Leaderboard (lowest score wins):
14
#181 - albalitz / @_albalitz

06/21/2019 at 07:04AM

14
#182 - Charlie OConor / @charlieoconor

06/27/2019 at 08:23PM

14
#183 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:54AM

14
#184 - Jonathan Browning / @yungjig90

08/02/2019 at 05:34PM

14
#185 - Andac Safa / @SanDForcE94

09/12/2019 at 09:32AM

15
#186 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#187 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#188 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#189 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM

15
#190 - Keyboard Fire / @KeyboardFire

10/06/2018 at 08:12PM

15
#191 - 王有铭 / @coder_ming

10/21/2018 at 06:13AM

15
#192 - Adam / @askoufish

10/23/2018 at 05:12AM

15
#193 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:14AM

15
#194 - succcubbus / @succcubbus

11/20/2018 at 10:19PM

15
#195 - Oren Koriat / @KoriatOren

12/04/2018 at 04:01PM

15
#196 - mathestar / @mathestar

12/11/2018 at 12:05PM

15
#197 - Blah Blah / @BlahBla08410389

01/19/2019 at 05:48PM

15
#198 - tp971 / @tp971

01/30/2019 at 09:36PM

15
#199 - r / @revanthedarth

02/09/2019 at 03:36AM

15
#200 - noisevoid / @noisevoid

02/26/2019 at 04:26PM

15
#201 - algebraic-geometric / @algebraicgeome1

02/26/2019 at 07:06PM

15
#202 - Amado Antonini / @AmadoAntonini

03/12/2019 at 10:41PM

15
#203 - Sherab Giovannini / @shaddycls

05/01/2019 at 05:51PM

15
#204 - Banos / @deep_spoon

06/07/2019 at 12:52PM

15
#205 - Paweł Styczewski / @kryspuss

06/13/2019 at 11:52AM

15
#206 - Reportados123 / @reportados123

06/25/2019 at 08:22PM

16
#207 - DustVoice / @DustVoice

09/17/2018 at 09:51PM

16
#208 - Roch Mirabeau / @roch_kiss

09/19/2018 at 11:55PM

16
#209 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM

16
#210 - Jordan / @RiotChomey

09/21/2018 at 09:30PM