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

731 active golfers, 3254 entries

Leaderboard (lowest score wins):
15
#361 - algebraic-geometric / @algebraicgeome1

02/26/2019 at 07:06PM

15
#362 - Amado Antonini / @AmadoAntonini

03/12/2019 at 10:41PM

15
#363 - Sherab Giovannini / @shaddycls

05/01/2019 at 05:51PM

15
#364 - Banos / @deep_spoon

06/07/2019 at 12:52PM

15
#365 - Paweł Styczewski / @kryspuss

06/13/2019 at 11:52AM

15
#366 - Reportados123 / @reportados123

06/25/2019 at 08:22PM

15
#367 - Ariel Miculas / @ArielMiculas

09/27/2019 at 09:11AM

15
#368 - MasterFox / @MaestroZorro_

10/22/2019 at 01:15PM

15
#369 - Harrison / @ardentcow

11/02/2019 at 12:26AM

15
#370 - Kevin Yokley / @kyokley19

11/03/2019 at 06:43PM

15
#371 - Melvin Cheung / @MelvinCheung

11/07/2019 at 05:54PM

15
#372 - Camillott Games / @camillottgames

11/28/2019 at 06:45PM

15
#373 - King Kang / @nobagtravel

12/12/2019 at 05:59PM

15
#374 - fkubota 🦉 / @the_phi_is_cast

01/22/2020 at 03:43AM

15
#375 - Ryan Nevius / @ryannevius

03/16/2020 at 01:32PM

15
#376 - Nathan Hartman / @hnathan918

04/02/2020 at 07:41PM

15
#377 - soundscope / @__soundscope__

07/07/2020 at 08:23AM

15
#378 - Martin Kauppinen / @MartinKauppinen

08/15/2020 at 05:42PM

15
#379 - Luc Kien Hang / @luckienhang

09/04/2020 at 03:38AM

15
#380 - Yannick / @Yannick88147038

09/20/2020 at 06:42PM

15
#381 - Vildu / @Vildu3

09/30/2020 at 09:37AM

15
#382 - Gytis Vinclovas / @GytisVinclovas

10/09/2020 at 09:57AM

15
#383 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 01:11PM

16
#384 - DustVoice / @DustVoice

09/17/2018 at 09:51PM

16
#385 - Roch Mirabeau / @roch_kiss

09/19/2018 at 11:55PM

16
#386 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM

16
#387 - Jordan / @RiotChomey

09/21/2018 at 09:30PM

16
#388 - Jeff / @sir_wiggles3

09/24/2018 at 11:34PM

16
#389 - adeel hussain / @adeelhussain

09/25/2018 at 07:47AM

16
#390 - Bruce Adams / @bruceadams1054

10/08/2018 at 10:32AM