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 393 remaining solutions by signing in and submitting your own entry
#394 Matej Stuchlik / @mstuchli - Score: 159 - 06/06/19 @ 16:21
<C-V>jjjjxpl.u.uuu<C-V>jjjj<Esc><Esc>kkkkqq<C-V>jjjjxpql@ql@@l@@l@@l@@l@@l@@l@@jjjjjhhhhhhhhhhhhhhhhhhhhllqq<C-V>jjjjxhhpqlll@qlll@@lll@@lll@@lll@@lll@@lll@@lll@@u@@u<C-V>jjjjxhp<Esc>:w<CR>:wqa<CR>

0 comments


Created by: @DustVoice

394 active golfers, 1698 entries

Leaderboard (lowest score wins):
14
#151 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 04:45PM

14
#152 - zaperrer / @zaperrer

11/07/2018 at 07:53PM

14
#153 - Nir Givon / @nir_givon

11/08/2018 at 12:31PM

14
#154 - Wouter Horlings / @Achilleshiel

11/08/2018 at 02:24PM

14
#155 - slithy2000 / @slithy2000

11/12/2018 at 09:37AM

14
#156 - Michael Rose / @mdroseDev

11/23/2018 at 12:44AM

14
#157 - Joeoe / @joeoe_

11/24/2018 at 03:05PM

14
#158 - samsuma000 / @samsuma000

11/27/2018 at 10:20PM

14
#159 - diwa / @Di_nate_

12/06/2018 at 10:00AM

14
#160 - alex m / @al_mk_

12/10/2018 at 08:04PM

14
#161 - Parsa Amini / @ParsaAmini

03/19/2019 at 04:15PM

14
#162 - TheMagzuz / @DamMarkus

05/17/2019 at 04:33PM

14
#163 - Nick Yeow / @nickyeow

05/22/2019 at 01:19PM

14
#164 - Seunghun Lee / @earlbread

05/28/2019 at 03:08PM

14
#165 - Brendan Op 't Root / @OptrootB

06/06/2019 at 06:19AM

14
#166 - Rwithik Manoj / @RwithikM

06/06/2019 at 02:29PM

14
#167 - Johannes / @joka253

06/20/2019 at 03:08PM

14
#168 - albalitz / @_albalitz

06/21/2019 at 07:04AM

14
#169 - Charlie OConor / @charlieoconor

06/27/2019 at 08:23PM

15
#170 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#171 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#172 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#173 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM

15
#174 - Keyboard Fire / @KeyboardFire

10/06/2018 at 08:12PM

15
#175 - 王有铭 / @coder_ming

10/21/2018 at 06:13AM

15
#176 - Adam / @askoufish

10/23/2018 at 05:12AM

15
#177 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:14AM

15
#178 - succcubbus / @succcubbus

11/20/2018 at 10:19PM

15
#179 - Oren Koriat / @KoriatOren

12/04/2018 at 04:01PM

15
#180 - mathestar / @mathestar

12/11/2018 at 12:05PM