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

872 active golfers, 3863 entries

Leaderboard (lowest score wins):
27
#721 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:26PM

27
#722 - Bumazhka / @Bumazhka

02/09/2019 at 10:46AM

27
#723 - Ng Sek Long / @NgSekLong

02/14/2019 at 07:09AM

27
#724 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 06:17PM

27
#725 - Jone Marius Vignes / @inful

06/15/2019 at 09:37PM

27
#726 - 蔡徐坤真是爱吃屎 / @Hashub7

01/20/2021 at 01:43PM

27
#727 - Balthazar Harnawe / @HotNastySpeed

04/03/2023 at 11:01PM

27
#728 - poparadu1 / @poparadu1

03/18/2024 at 01:36PM

28
#729 - Sam Kim / @samkimhis

10/11/2018 at 06:28AM

28
#730 - greengreen / @greengr09073862

11/15/2018 at 04:26AM

28
#731 - Jules / @namebrandloser

11/16/2018 at 08:40PM

28
#732 - xer0.5ive / @Bibekshah

01/23/2019 at 02:51PM

28
#733 - Jiho Noh / @JihoNoh

04/01/2019 at 11:08PM

28
#734 - Kirk Bater / @KirkBater

06/06/2019 at 05:16PM

28
#735 - Evan Nagle / @evannagle

06/11/2019 at 07:02AM

28
#736 - Mike Hourahine / @mhourahine

08/01/2019 at 01:47AM

28
#737 - Riftere / @riftere11

08/03/2019 at 10:24PM

28
#738 - Aioriya / @AioriyaDonk

08/26/2019 at 02:51AM

28
#739 - wsg / @wsg31986835

11/29/2019 at 11:31AM

28
#740 - manfred knapp / @fred_pooshka

12/21/2019 at 11:18PM

28
#741 - Soumadeep Saha / @SoumadeepSaha8

05/10/2020 at 02:15AM

28
#742 - jackmark / @jackmar14540583

07/10/2020 at 02:05PM

28
#743 - noided / @noided17

12/01/2020 at 08:45PM

28
#744 - Kevin Lou / @klou23

07/26/2024 at 04:32PM

28
#745 - NotWearingPants / @NotWearingPants

08/04/2024 at 11:30PM

28
#746 - Diwakar Singh Parmar / @parmardiwakar150

08/28/2024 at 12:37PM

29
#747 - Dax / @daaawx

10/15/2018 at 06:35PM

29
#748 - Andre Cato / @DreBear800

10/30/2018 at 01:49AM

29
#749 - Alexander Popov / @Alexand01782341

03/10/2019 at 08:21PM

29
#750 - Jess / @Jess74311450

06/11/2019 at 03:31PM