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

896 active golfers, 3949 entries

Leaderboard (lowest score wins):
29
#781 - david / @david52856086

12/17/2020 at 03:29AM

30
#782 - Zenghanzhang / @hzengroger

11/10/2018 at 06:32AM

30
#783 - roemermeier / @roemermeier

10/19/2019 at 07:55AM

30
#784 - Bajok / @b410k

11/01/2020 at 01:08AM

30
#785 - Alex Watson / @AlexDewiWatson

12/08/2020 at 10:38PM

30
#786 - Vinay Sridhar / @kewllip

03/12/2023 at 01:01PM

31
#787 - gsvba / @gsvba

09/19/2018 at 08:29PM

31
#788 - Tojo Chacko / @tojochacko

09/21/2018 at 05:05AM

31
#789 - Shashank G Hegde / @shashankghegde

10/07/2018 at 07:03PM

31
#790 - Eli Edrian Tan / @eeveeedriantan

10/11/2018 at 12:46AM

31
#791 - m472 / @m4729

10/27/2018 at 12:07AM

31
#792 - Shunichi Kanade / @shunkana

11/18/2018 at 01:40AM

31
#793 -  Martijn Engler / @MartijnEngler

12/31/2018 at 07:58PM

31
#794 - wrglprmft / @wrglprmft

01/19/2019 at 08:58PM

31
#795 - ytrxc38754975 / @royaso

04/12/2019 at 07:02AM

31
#796 - ImaNotgate / @INotgate

04/28/2019 at 10:37PM

31
#797 - Floyd Gantt / @fgantt

06/28/2019 at 05:58PM

31
#798 - Nick Lee / @TooManyNickLees

04/05/2020 at 02:22PM

31
#799 - Dmitry Branitskiy / @b1azer

04/10/2020 at 02:55AM

31
#800 - Faizan Ansari / @faizan_157

01/31/2021 at 02:47PM

31
#801 - Ratkovszki István / @RatkovszkiIstvn

09/03/2022 at 10:23PM

31
#802 - shahanavaz m / @shahanavazm

03/29/2024 at 08:29PM

31
#803 - Shreyas Sarve / @shreyasSarve

12/19/2025 at 06:56PM

32
#804 - Nishanth Reddy / @Nishanth2066

01/18/2021 at 07:14AM

33
#805 - Brent Woo / @BrentPWoo

10/01/2018 at 07:40PM

33
#806 - Josh Dick / @_joshdick

06/06/2019 at 07:48PM

33
#807 - Filipe 💙 / @ABarroso

11/05/2020 at 09:19PM

33
#808 - Leander Hendrikx / @leanderhendrikx

11/22/2020 at 01:18PM

33
#809 - Sreevikram Rajaraman / @SreevikramR

12/26/2025 at 07:47PM

34
#810 - Jurica / @Jurica34581259

11/14/2018 at 11:16PM