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

481 active golfers, 2078 entries

Leaderboard (lowest score wins):
17
#301 - Aurel / @AurelienFebvre

06/25/2019 at 07:53PM

17
#302 - Scott Schlesier / @sschlesier

07/01/2019 at 06:36AM

17
#303 - Артур Кашаев / @KashaevArthur

07/10/2019 at 07:28AM

17
#304 - Peter Demin / @peterdemin

07/11/2019 at 05:45PM

17
#305 - Denis / @4NNTGudvin

07/12/2019 at 10:18AM

17
#306 - Crystal L / @Cartsly

07/13/2019 at 08:45PM

17
#307 - Ralph / @Ralph59017303

09/08/2019 at 10:02AM

17
#308 - Max Williams / @notmaxbutmax

10/16/2019 at 12:06AM

17
#309 - Jonathan Medwig / @jmedwig

10/22/2019 at 05:40PM

17
#310 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:03AM

18
#311 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#312 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#313 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#314 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#315 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#316 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#317 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#318 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#319 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#320 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#321 - seul / @seul15987381

06/20/2019 at 11:09AM

18
#322 - brypto / @hiimbenjy

10/01/2019 at 02:01AM

18
#323 - ENSORIZATION / @ensorization

11/01/2019 at 11:22PM

19
#324 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#325 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#326 - a / @UseForVim

10/03/2018 at 01:13PM

19
#327 - robinro / @robinro

10/05/2018 at 01:16PM

19
#328 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#329 - Commi / @hellocommi

11/25/2018 at 11:30PM

19
#330 - Luis Rodriguez / @luisthecoder

01/03/2019 at 04:13AM