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

437 active golfers, 1849 entries

Leaderboard (lowest score wins):
19
#301 - Yannick Gladow / @y_gldw

09/17/2019 at 11:17AM

20
#302 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM

20
#303 - Rossi / @mrossinek

12/04/2018 at 07:16PM

20
#304 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

20
#305 - Emanuele Aliverti / @memeAliverti

02/13/2019 at 02:37PM

20
#306 - Tanguy ⧓ Herrmann / @hashtang__

06/06/2019 at 09:20AM

20
#307 - Aos Dabbagh / @aosdabbagh

06/06/2019 at 04:48PM

20
#308 - JamesB41 / @JamesB41

06/06/2019 at 08:14PM

21
#309 - diego olivera / @alejo_olivera

09/19/2018 at 08:53PM

21
#310 - kyoyachuan / @kyoyachuan0626

10/03/2018 at 09:19AM

21
#311 - JonasS / @jonas42s

05/29/2019 at 11:57AM

21
#312 - pommevilla / @pawlrus

06/06/2019 at 08:28PM

21
#313 - David Nash / @david_nash

06/06/2019 at 10:54PM

22
#314 - Apbsub / @apbsub

09/30/2018 at 01:28AM

22
#315 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 02:59PM

22
#316 - steve N ӾlvЮ / @xlvio

11/17/2018 at 07:02PM

22
#317 - Jacob Xu / @jacobhxu

12/07/2018 at 04:24AM

22
#318 - TimMcGuire / @mcguire

12/24/2018 at 03:42PM

22
#319 - Gitsnik / @dracyrys

04/19/2019 at 12:27PM

22
#320 - David Accomazzo / @WordsofDefiance

05/23/2019 at 07:44PM

22
#321 - a lot of people don't know I'm / @akinevz

06/07/2019 at 01:43AM

22
#322 - Ola / @Ola73745831

07/05/2019 at 03:25PM

23
#323 - Martin Nordgren / @MartinJNordgren

09/21/2018 at 08:56AM

23
#324 - Jacky Tian / @xjtian

11/29/2018 at 06:33AM

23
#325 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:03PM

23
#326 - vince / @vincentvangott

03/03/2019 at 12:37PM

23
#327 - a60068 / @a60068

06/19/2019 at 01:37PM

24
#328 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:32AM

24
#329 - Kim Hwa Joong / @hanmwoi

10/13/2018 at 04:39PM

24
#330 - Dave Brda / @BrdaDave

10/24/2018 at 01:53AM