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 636 remaining solutions by signing in and submitting your own entry
#637 梁(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

637 active golfers, 2827 entries

Leaderboard (lowest score wins):
14
#271 - Joeoe / @joeoe_

11/24/2018 at 03:05PM

14
#272 - samsuma000 / @samsuma000

11/27/2018 at 10:20PM

14
#273 - diwa / @Di_nate_

12/06/2018 at 10:00AM

14
#274 - alex m / @al_mk_

12/10/2018 at 08:04PM

14
#275 - Parsa Amini / @ParsaAmini

03/19/2019 at 04:15PM

14
#276 - TheMagzuz / @DamMarkus

05/17/2019 at 04:33PM

14
#277 - Nick Yeow / @nickyeow

05/22/2019 at 01:19PM

14
#278 - Seunghun Lee / @earlbread

05/28/2019 at 03:08PM

14
#279 - Brendan Op 't Root / @OptrootB

06/06/2019 at 06:19AM

14
#280 - Rwithik Manoj / @RwithikM

06/06/2019 at 02:29PM

14
#281 - Johannes / @joka253

06/20/2019 at 03:08PM

14
#282 - albalitz / @_albalitz

06/21/2019 at 07:04AM

14
#283 - Charlie OConor / @charlieoconor

06/27/2019 at 08:23PM

14
#284 - Matt Vaughn / @mattttvaughn

07/29/2019 at 02:54AM

14
#285 - Jonathan Browning / @yungjig90

08/02/2019 at 05:34PM

14
#286 - Andac Safa / @SanDForcE94

09/12/2019 at 09:32AM

14
#287 - Alexander L. / @Lexol4s

10/01/2019 at 07:53PM

14
#288 - Alex Emelianov / @AlexEmelianov3

10/26/2019 at 05:19AM

14
#289 - Lion de Bell / @CLGBamboo

11/30/2019 at 11:29PM

14
#290 - Marten Ringwelski / @Marteon27

12/07/2019 at 06:47PM

14
#291 - John Otters / @OttersJohn

12/17/2019 at 01:14AM

14
#292 - Lars Haalck / @larshulk

01/09/2020 at 03:14PM

14
#293 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 10:50PM

14
#294 - nico S / @der_nico_93

01/30/2020 at 01:40PM

14
#295 - floyd / @floyd10086

03/04/2020 at 09:49AM

14
#296 - artcha / @artushkevichs

07/08/2020 at 08:07AM

15
#297 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#298 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#299 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#300 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM