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

760 active golfers, 3376 entries

Leaderboard (lowest score wins):
18
#541 - George Angelopoulos / @g_usermod

02/16/2021 at 08:02AM

19
#542 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#543 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#544 - a / @UseForVim

10/03/2018 at 01:13PM

19
#545 - robinro / @robinro

10/05/2018 at 01:16PM

19
#546 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#547 - Commi / @hellocommi

11/25/2018 at 11:30PM

19
#548 - Luis Rodriguez / @luisthecoder

01/03/2019 at 04:13AM

19
#549 - 강현 / @Applesquiz

01/20/2019 at 05:29PM

19
#550 - fucus / @fishlovebanana

02/21/2019 at 11:15AM

19
#551 - salmiak / @salmiak7

05/15/2019 at 11:15PM

19
#552 - Guillaume / @arteymix

06/07/2019 at 03:46AM

19
#553 - Jon Nalley / @na11ey

06/13/2019 at 06:48PM

19
#554 - mirsemen / @mirsemen1

07/15/2019 at 02:57AM

19
#555 - Fred Leclerc / @fredleclerc

07/24/2019 at 09:09PM

19
#556 - Andrew Blokzyl / @linuxKd

08/29/2019 at 09:33PM

19
#557 - Yannick Gladow / @y_gldw

09/17/2019 at 11:17AM

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

10/23/2019 at 11:25PM

19
#559 - Daniel Habib / @danielhvs

07/21/2020 at 10:03PM

19
#560 - Andrewana / @andrewanachan

02/12/2022 at 04:37AM

20
#561 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM

20
#562 - Rossi / @mrossinek

12/04/2018 at 07:16PM

20
#563 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

20
#564 - Emanuele Aliverti / @memeAliverti

02/13/2019 at 02:37PM

20
#565 - Tanguy ⧓ Herrmann / @hashtang__

06/06/2019 at 09:20AM

20
#566 - Aos Dabbagh / @aosdabbagh

06/06/2019 at 04:48PM

20
#567 - JamesB41 / @JamesB41

06/06/2019 at 08:14PM

20
#568 - Wayne / @lilwayne15561

11/14/2020 at 06:59PM

21
#569 - diego olivera / @alejo_olivera

09/19/2018 at 08:53PM

21
#570 - kyoyachuan / @kyoyachuan0626

10/03/2018 at 09:19AM