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 482 remaining solutions by signing in and submitting your own entry
#483 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

483 active golfers, 2090 entries

Leaderboard (lowest score wins):
13
#121 - Nate / @natedoran

01/02/2019 at 07:26AM

13
#122 - Daniel Hjelm / @dhjelm

01/02/2019 at 04:27PM

13
#123 - 波波 / @sbob87

01/04/2019 at 07:32AM

13
#124 - Valacar / @valacar

01/09/2019 at 05:50AM

13
#125 - abgalphabet / @abgalphabet

01/13/2019 at 02:44AM

13
#126 - Mangeart Yoric / @yoricm

01/17/2019 at 07:23AM

13
#127 - bajidu / @bajidu

01/27/2019 at 12:38AM

13
#128 - tenteke / @kuskus3

01/27/2019 at 07:13AM

13
#129 - Daniel Steinberg / @dstein64

01/28/2019 at 06:15AM

13
#130 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:19PM

13
#131 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 04:48PM

13
#132 - Tinko Minko / @tandikula

02/04/2019 at 09:37PM

13
#133 - T A / @SirAviles

02/13/2019 at 11:41AM

13
#134 - sjcomp / @sjcomp

02/25/2019 at 03:36PM

13
#135 - chenqiqi / @chenqiqi13

03/12/2019 at 12:05PM

13
#136 - enji / @enji_ja

03/18/2019 at 04:39PM

13
#137 - k24w24 / @k24w24

03/20/2019 at 03:47PM

13
#138 - wanghbxxxx / @wanghbxxxx

04/04/2019 at 02:23AM

13
#139 - Norbert / @mullno

04/18/2019 at 07:26PM

13
#140 - Bruce Woodward / @b00ffer

04/21/2019 at 06:48PM

13
#141 - ow / @ow34480012

04/30/2019 at 07:46PM

13
#142 - Arno / @arnoxmp

05/10/2019 at 07:35AM

13
#143 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:50PM

13
#144 - alexandrasou / @alexandrasou2

05/22/2019 at 12:53PM

13
#145 - mkaminaga / @mkmng3

06/05/2019 at 08:47AM

13
#146 - Kris Ezra / @kris_ezra

06/06/2019 at 05:16AM

13
#147 - Miles Edland / @ShutUpMiles

06/06/2019 at 06:25AM

13
#148 - Kristian Haug / @krimhaug

06/06/2019 at 07:13AM

13
#149 - Joo Ming / @JooMingJoo

06/06/2019 at 08:29AM

13
#150 - shay-tal / @shaytal

06/06/2019 at 09:55AM