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

654 active golfers, 2895 entries

Leaderboard (lowest score wins):
35
#601 - Dmatrix / @Dr_Dmatrix

06/28/2019 at 06:30PM

35
#602 - Fritz Inf / @6360info

08/16/2019 at 06:30PM

36
#603 - throwaway / @throwaw77650361

03/05/2019 at 07:39PM

36
#604 - theBecwar / @thebecwar

08/18/2019 at 04:05PM

36
#605 - JS / @jjohsan

09/03/2019 at 03:07PM

36
#606 - damien / @GreatTestyTest

11/11/2019 at 12:04AM

38
#607 - xarfg / @xarphg

10/31/2018 at 01:14PM

38
#608 - Eric Moss / @NotEricMoss

11/04/2018 at 09:52PM

38
#609 - Jeff Anderson / @_j3ffrey

06/04/2019 at 11:19PM

38
#610 - 煮沸的白開水 / @season_303030

12/02/2019 at 08:25AM

41
#611 - freehaha / @freehaha

08/28/2019 at 05:14AM

41
#612 - bladehaze / @bladehaze

05/04/2020 at 07:31PM

41
#613 - Vinay Sharma / @VinaySh63956554

08/09/2020 at 06:14PM

42
#614 - Philip Stephenson / @philip_iv

07/19/2019 at 09:09PM

43
#615 - Tom Smeding / @TomSmeding

11/05/2018 at 10:27PM

43
#616 - Matze / @ebaharilikult

11/20/2018 at 07:16AM

44
#617 - Fabio Branquinho / @branquif

11/08/2018 at 12:36PM

44
#618 - Joe Francis / @lostapathy

01/13/2019 at 05:27PM

44
#619 - Bruce Park / @bpark0

03/11/2019 at 12:06AM

44
#620 - How It DO / @thatshowitdo

06/07/2019 at 03:19AM

44
#621 - Siddhartha [not giving away free coins] / @siddhartha_cryp

12/06/2019 at 08:57PM

45
#622 - Ishaan Verma / @n1trob4ct3r

06/19/2020 at 02:34PM

46
#623 - Why Am / @WhysDeCatOnFire

11/07/2018 at 07:08PM

46
#624 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 01:52PM

47
#625 - Calvin Fong / @LordyBaka

11/03/2018 at 10:58AM

47
#626 - Steffen / @Pions90

02/14/2020 at 06:44PM

48
#627 - Ketan Agrawal / @_ketan0_

10/04/2018 at 03:26AM

48
#628 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 07:18PM

48
#629 - MGJoe93 / @mgjoe93

03/06/2019 at 12:19PM

48
#630 - Vimfiz / @vimfiz

03/21/2019 at 12:20AM