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):
26
#391 - André Reigoto / @AndreReigoto

08/10/2019 at 05:04AM

27
#392 - Lars Haalck / @larshulk

10/05/2018 at 02:26PM

27
#393 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:20PM

27
#394 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:26PM

27
#395 - Bumazhka / @Bumazhka

02/09/2019 at 10:46AM

27
#396 - Ng Sek Long / @NgSekLong

02/14/2019 at 07:09AM

27
#397 - vimgolfer24271 / @vimgolfer24271

05/13/2019 at 06:17PM

27
#398 - Jone Marius Vignes / @inful

06/15/2019 at 09:37PM

28
#399 - Sam Kim / @samkimhis

10/11/2018 at 06:28AM

28
#400 - greengreen / @greengr09073862

11/15/2018 at 04:26AM

28
#401 - Juliette but spooky / @namebrandloser

11/16/2018 at 08:40PM

28
#402 - xer0.5ive / @Bibekshah

01/23/2019 at 02:51PM

28
#403 - Jiho Noh / @JihoNoh

04/01/2019 at 11:08PM

28
#404 - Kirk Bater / @KirkBater

06/06/2019 at 05:16PM

28
#405 - Evan Nagle / @evannagle

06/11/2019 at 07:02AM

28
#406 - Mike Hourahine / @mhourahine

08/01/2019 at 01:47AM

28
#407 - Riftere / @riftere11

08/03/2019 at 10:24PM

28
#408 - José / @AngelGaldamez

08/26/2019 at 02:51AM

29
#409 - Dax / @daaawx

10/15/2018 at 06:35PM

29
#410 - Andre Cato / @DreBear800

10/30/2018 at 01:49AM

29
#411 - Alexander Popov / @Alexand01782341

03/10/2019 at 08:21PM

29
#412 - Jess / @Jess74311450

06/11/2019 at 03:31PM

29
#413 - Rohit Kumar Jena / @rohitrango

07/05/2019 at 06:22AM

29
#414 - Chris Shorrock / @EbinFlow

08/15/2019 at 02:51PM

29
#415 - dahara / @kuma_moooon

08/15/2019 at 03:11PM

29
#416 - GAUTAM V NAIK / @gautamnaik1994

08/26/2019 at 11:04AM

29
#417 - Константин / @pillar_vandyke

10/18/2019 at 02:27AM

30
#418 - Zenghanzhang / @hzengroger

11/10/2018 at 06:32AM

30
#419 - roemermeier / @roemermeier

10/19/2019 at 07:55AM

31
#420 - gsvba / @gsvba

09/19/2018 at 08:29PM