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 271 remaining solutions by signing in and submitting your own entry
#272 minjikim / @minjiki38685196 - Score: 92 - 10/10/18 @ 13:04
:<Up><Up><Up>g<Up><Up>/<BS>!/g<BS><CR>:g/<BS>!/^,/normal ^n<BS>0<BS>a,<BS><BS><BS>$x^a,<CR>:<Up><BS><BS><BS><BS><BS>^x$i,<CR>u:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><CR>:<0xe3><0x85><0x88><0xe3><0x85><0x82><BS><BS>wq<CR>

0 comments


Created by: @DustVoice

272 active golfers, 1146 entries

Leaderboard (lowest score wins):
12
#1 - BaffaloP πŸƒπŸŽ¨ / @bbaffalopp

11/15/2018 at 10:03AM

12
#2 - Bruno Cunha / @bruncun

11/17/2018 at 07:37PM

12
#3 - Dax / @zacoxi

11/20/2018 at 01:18AM

12
#4 - Jonathan Cabezas / @John_Harkan

11/26/2018 at 05:16PM

12
#5 - band / @band26376522

12/04/2018 at 08:23PM

12
#6 - Anant Mishra / @anantanni22

12/08/2018 at 03:30PM

12
#7 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 03:17AM

12
#8 - xwlearn / @ixw1991

12/18/2018 at 02:06PM

12
#9 - Evyk / @Mr_Evyk

12/18/2018 at 07:35PM

12
#10 - Steven Bell / @stevenbell

12/19/2018 at 08:36PM

12
#11 - guxbug / @guxbug1

12/20/2018 at 07:02AM

12
#12 - omrisarig / @omrisarig

01/04/2019 at 04:19PM

12
#13 - Turkey Man / @lvturkeyman

01/08/2019 at 08:53AM

12
#14 - pankaj singh / @pankajsingh013

01/10/2019 at 05:08PM

12
#15 - heppen / @heppen_He

01/12/2019 at 11:40AM

12
#16 - γŸγγΏγƒΌοΌˆθ»’θ·γƒ‰γƒ©γ‚·γƒ«οΌ‰ / @reirei_As

01/15/2019 at 05:49AM

12
#17 - py / @py97235249

01/17/2019 at 08:24AM

12
#18 - Mario Olofo / @mario_olofo

01/19/2019 at 01:32AM

12
#19 - Marc PΓ€pper / @mpaepper

01/27/2019 at 04:53PM

12
#20 - filbranden / @filbranden

02/17/2019 at 09:31AM

12
#21 - eidolon / @eid_lon

03/01/2019 at 06:38PM

12
#22 - james_bunch / @james_bunch

03/07/2019 at 05:08PM

12
#23 - Robert Orr / @orrrobert

03/11/2019 at 09:13PM

12
#24 - zh0ng / @zh00ng

03/19/2019 at 05:36AM

12
#25 - πŸ…·πŸ…°πŸ†πŸ†πŸ†ˆ / @HarryAAbrahams1

03/21/2019 at 03:49AM

12
#26 - Maximilian F. / @TheMaex

03/30/2019 at 03:03AM

12
#27 - Joel Eriksson / @OwariDa

04/09/2019 at 02:36PM

12
#28 - phoibos92@gmail.com / @phoibos92

04/11/2019 at 03:32PM

12
#29 - alekfed / @alek_fed

04/14/2019 at 06:09PM

12
#30 - Titouan Teyssier / @TitouanT_

04/18/2019 at 02:50PM