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

366 active golfers, 1610 entries

Leaderboard (lowest score wins):
22
#271 - Apbsub / @apbsub

09/30/2018 at 01:28AM

22
#272 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 02:59PM

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

11/17/2018 at 07:02PM

22
#274 - Jacob Xu / @jacobhxu

12/07/2018 at 04:24AM

22
#275 - TimMcGuire / @mcguire

12/24/2018 at 03:42PM

22
#276 - Gitsnik / @dracyrys

04/19/2019 at 12:27PM

22
#277 - David Accomazzo / @WordsofDefiance

05/23/2019 at 07:44PM

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

06/07/2019 at 01:43AM

23
#279 - Martin Nordgren / @MartinJNordgren

09/21/2018 at 08:56AM

23
#280 - Jacky Tian / @xjtian

11/29/2018 at 06:33AM

23
#281 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:03PM

23
#282 - vince / @vincentvangott

03/03/2019 at 12:37PM

24
#283 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:32AM

24
#284 - Kim Hwa Joong / @hanmwoi

10/13/2018 at 04:39PM

24
#285 - Dave Brda / @BrdaDave

10/24/2018 at 01:53AM

24
#286 - PJ Frazer / @pj_frazer

11/22/2018 at 03:35AM

24
#287 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:58PM

24
#288 - Chris AtLee / @chrisatlee

03/04/2019 at 04:28PM

24
#289 - Mike Harris / @MikeMJHarris

04/10/2019 at 01:59PM

24
#290 - Καράτε Μόνο / @karate_mono

06/06/2019 at 07:47AM

24
#291 - Rafael Gumieri / @rgumieri

06/06/2019 at 12:08PM

25
#292 - unclewangshushu / @shuwushu

11/29/2018 at 06:13AM

25
#293 - Jasper Pangilinan / @JasperP

12/25/2018 at 12:05AM

25
#294 - Emil Braserud / @Erdustiggen

03/16/2019 at 04:28PM

25
#295 - Elias Daler / @EliasDaler

06/06/2019 at 09:39AM

26
#296 - Juan / @jubujjamer

10/15/2018 at 07:09PM

26
#297 - Hunter Tidwell / @hunter2tidwell

10/23/2018 at 05:18AM

26
#298 - Bennett / @bennettbackward

12/20/2018 at 12:02PM

26
#299 - Phil Devitt / @GeneralHav0k

01/01/2019 at 01:52PM

26
#300 - Nikos Koukis / @bergercookie12

01/03/2019 at 05:17PM