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

636 active golfers, 2824 entries

Leaderboard (lowest score wins):
18
#451 - Mark Oswald / @mrkosw

03/02/2020 at 03:52AM

18
#452 - Muhammad Affan / @maqur5

03/05/2020 at 02:56PM

18
#453 - Ryan Burmeister-Morrison / @rburmorrison

04/10/2020 at 06:48PM

18
#454 - Axel / @Axel07930943

05/05/2020 at 06:58AM

18
#455 - Laurent Atlan / @laurentatlan1

05/20/2020 at 09:45PM

18
#456 - Matt DB / @MattDB12

06/07/2020 at 08:18PM

18
#457 - dotvimrc / @dotvimrc1

06/11/2020 at 06:39AM

19
#458 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#459 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#460 - a / @UseForVim

10/03/2018 at 01:13PM

19
#461 - robinro / @robinro

10/05/2018 at 01:16PM

19
#462 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#463 - Commi / @hellocommi

11/25/2018 at 11:30PM

19
#464 - Luis Rodriguez / @luisthecoder

01/03/2019 at 04:13AM

19
#465 - 강현 / @Applesquiz

01/20/2019 at 05:29PM

19
#466 - fucus / @fishlovebanana

02/21/2019 at 11:15AM

19
#467 - salmiak / @salmiak7

05/15/2019 at 11:15PM

19
#468 - Guillaume / @arteymix

06/07/2019 at 03:46AM

19
#469 - Jon Nalley / @na11ey

06/13/2019 at 06:48PM

19
#470 - mirsemen / @mirsemen1

07/15/2019 at 02:57AM

19
#471 - Fred Leclerc / @fredleclerc

07/24/2019 at 09:09PM

19
#472 - Andrew Blokzyl / @linuxKd

08/29/2019 at 09:33PM

19
#473 - Yannick Gladow / @y_gldw

09/17/2019 at 11:17AM

19
#474 - jenna why do i have to make this / @jenna_have

10/23/2019 at 11:25PM

20
#475 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM

20
#476 - Rossi / @mrossinek

12/04/2018 at 07:16PM

20
#477 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

20
#478 - Emanuele Aliverti / @memeAliverti

02/13/2019 at 02:37PM

20
#479 - Tanguy ⧓ Herrmann / @hashtang__

06/06/2019 at 09:20AM

20
#480 - Aos Dabbagh / @aosdabbagh

06/06/2019 at 04:48PM