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

892 active golfers, 3941 entries

Leaderboard (lowest score wins):
17
#601 - wutwere / @wutwere

06/30/2024 at 09:59PM

17
#602 - Anton de Regt / @antonderegt

10/25/2024 at 01:29PM

17
#603 - phaym / @phaym

10/14/2025 at 03:15AM

18
#604 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#605 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#606 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#607 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#608 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#609 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#610 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#611 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#612 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#613 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#614 - seul / @seul15987381

06/20/2019 at 11:09AM

18
#615 - brypto / @hiimbenjy

10/01/2019 at 02:01AM

18
#616 - ENSORIZATION / @ensorization

11/01/2019 at 11:22PM

18
#617 - Halfdan S. Bechmann / @HalfdanIsLame

01/17/2020 at 12:32PM

18
#618 - Mark Oswald / @mrkosw

03/02/2020 at 03:52AM

18
#619 - Affan / @maqur_

03/05/2020 at 02:56PM

18
#620 - Ryan Burmeister-Morrison / @rburmorrison

04/10/2020 at 06:48PM

18
#621 - Axel / @Axel07930943

05/05/2020 at 06:58AM

18
#622 - Laurent Atlan / @laurentatlan1

05/20/2020 at 09:45PM

18
#623 - Matt DB / @MattDB12

06/07/2020 at 08:18PM

18
#624 - dotvimrc / @dotvimrc1

06/11/2020 at 06:39AM

18
#625 - Muradil / @MuradilUdun

10/22/2020 at 12:52AM

18
#626 - usermod / @g_usermod

02/16/2021 at 08:02AM

18
#627 - . / @6D6F6D6F

02/04/2023 at 07:56PM

18
#628 - Sander Meij / @SanderMeij

06/04/2024 at 09:39AM

18
#629 - Keane / @keanesc

10/14/2024 at 05:08AM

18
#630 - jimmymills / @jimmymills

05/28/2025 at 06:10PM