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 725 remaining solutions by signing in and submitting your own entry
#726 梁(Liang リャン) / @starduliang - Score: 208 - 03/01/20 @ 11:16
jk<C-V>jjjjxlllllllllllllllll<C-V>jjjjp<Esc><Esc>uh<C-V>jjjjp<Esc>uu<C-V>jjjjxlllllllllllhhhhf9h<C-V>jjjjp<Esc>u<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>ul<C-V>jjjjI,<Esc><Esc><Esc>jjjjjl<C-V>jjjjx<Esc>bbbbbbbbbbbbbbbbl<C-V>jjjjI,<Esc>jjjjjj:w<CR>:wq<CR>

0 comments


Created by: @DustVoice

726 active golfers, 3236 entries

Leaderboard (lowest score wins):
20
#541 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

20
#542 - Emanuele Aliverti / @memeAliverti

02/13/2019 at 02:37PM

20
#543 - Tanguy ⧓ Herrmann / @hashtang__

06/06/2019 at 09:20AM

20
#544 - Aos Dabbagh / @aosdabbagh

06/06/2019 at 04:48PM

20
#545 - JamesB41 / @JamesB41

06/06/2019 at 08:14PM

20
#546 - Wayne / @lilwayne15561

11/14/2020 at 06:59PM

21
#547 - diego olivera / @alejo_olivera

09/19/2018 at 08:53PM

21
#548 - kyoyachuan / @kyoyachuan0626

10/03/2018 at 09:19AM

21
#549 - JonasS / @jonas42s

05/29/2019 at 11:57AM

21
#550 - pommevilla / @pawlrus

06/06/2019 at 08:28PM

21
#551 - David Nash / @david_nash

06/06/2019 at 10:54PM

21
#552 - Juan Francisco Bertona / @Weed1an

10/14/2019 at 02:34PM

22
#553 - Apbsub / @apbsub

09/30/2018 at 01:28AM

22
#554 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 02:59PM

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

11/17/2018 at 07:02PM

22
#556 - Jacob Xu / @jacobhxu

12/07/2018 at 04:24AM

22
#557 - Gitsnik / @dracyrys

04/19/2019 at 12:27PM

22
#558 - David Accomazzo / @WordsofDefiance

05/23/2019 at 07:44PM

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

06/07/2019 at 01:43AM

22
#560 - Ola / @Ola73745831

07/05/2019 at 03:25PM

22
#561 - 伟哥 / @w15659018558

10/04/2020 at 07:20AM

22
#562 - Serhiy Prikhodko / @mastersnetru

11/18/2020 at 09:59AM

23
#563 - Martin Nordgren / @MartinJNordgren

09/21/2018 at 08:56AM

23
#564 - Jacky Tian / @xjtian

11/29/2018 at 06:33AM

23
#565 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:03PM

23
#566 - vince / @vincentvangott

03/03/2019 at 12:37PM

23
#567 - a60068 / @a60068

06/19/2019 at 01:37PM

23
#568 - 990 / @nisibasi990

12/05/2019 at 04:25PM

23
#569 - volandkit / @volandkit

04/20/2020 at 06:44PM

24
#570 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:32AM