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

910 active golfers, 3993 entries

Leaderboard (lowest score wins):
31
#811 - Nick Lee / @TooManyNickLees

04/05/2020 at 02:22PM

31
#812 - Dmitry Branitskiy / @b1azer

04/10/2020 at 02:55AM

31
#813 - Faizan Ansari / @faizan_157

01/31/2021 at 02:47PM

31
#814 - Ratkovszki István / @RatkovszkiIstvn

09/03/2022 at 10:23PM

31
#815 - shahanavaz m / @shahanavazm

03/29/2024 at 08:29PM

31
#816 - Shreyas Sarve / @shreyasSarve

12/19/2025 at 06:56PM

32
#817 - Nishanth Reddy / @Nishanth2066

01/18/2021 at 07:14AM

33
#818 - Brent Woo / @BrentPWoo

10/01/2018 at 07:40PM

33
#819 - Josh Dick / @_joshdick

06/06/2019 at 07:48PM

33
#820 - Filipe 💙 / @ABarroso

11/05/2020 at 09:19PM

33
#821 - Leander Hendrikx / @leanderhendrikx

11/22/2020 at 01:18PM

33
#822 - Sreevikram Rajaraman / @SreevikramR

12/26/2025 at 07:47PM

34
#823 - Jurica / @Jurica34581259

11/14/2018 at 11:16PM

34
#824 - Chris Lesage / @chrislesage

06/07/2019 at 04:02AM

34
#825 - Luiz Eduardo Amaral / @_luxedo

08/13/2019 at 05:56PM

34
#826 - Christian / @paierlep

09/02/2019 at 07:33PM

34
#827 - Aaron / @aaronlichtman

09/24/2019 at 12:43PM

35
#828 - Raul / @Raul50174499

04/23/2019 at 05:38AM

35
#829 - Corey Alexander / @coreyja_dev

06/27/2019 at 03:35AM

35
#830 - Dmatrix / @Dr_Dmatrix

06/28/2019 at 06:30PM

35
#831 - Fritz Inf / @6360info

08/16/2019 at 06:30PM

35
#832 - Henry Harutyunyan / @henryh9n

11/01/2022 at 08:52AM

36
#833 - throwaway / @throwaw77650361

03/05/2019 at 07:39PM

36
#834 - theBecwar / @thebecwar

08/18/2019 at 04:05PM

36
#835 - JS / @jjohsan

09/03/2019 at 03:07PM

36
#836 - damien / @GreatTestyTest

11/11/2019 at 12:04AM

36
#837 - einferd / @einferd

06/26/2024 at 11:55AM

38
#838 - xarfg / @xarphg

10/31/2018 at 01:14PM

38
#839 - Eric Moss / @NotEricMoss

11/04/2018 at 09:52PM

38
#840 - panakin skywalker / @_j3ffrey

06/04/2019 at 11:19PM