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

452 active golfers, 1921 entries

Leaderboard (lowest score wins):
17
#271 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM

17
#272 - ui / @ui61065627

03/14/2019 at 07:29AM

17
#273 - Duke Du / @DukeDu2

03/26/2019 at 03:15AM

17
#274 - 김현수 / @flyhigh43

04/27/2019 at 06:53PM

17
#275 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:53PM

17
#276 - Henry Wang (theKidOfArcrania) / @kidOfArcrania

05/24/2019 at 07:34PM

17
#277 - TheJoblessGuyTalks / @the_jgt

05/28/2019 at 08:44AM

17
#278 - Mark Blakeney / @bulletmark

06/06/2019 at 06:43AM

17
#279 - Ayzen / @Ayzen

06/06/2019 at 09:11AM

17
#280 - Tripurari Shankar / @tripurari001

06/06/2019 at 11:05AM

17
#281 - Aurel / @AurelienFebvre

06/25/2019 at 07:53PM

17
#282 - Scott Schlesier / @sschlesier

07/01/2019 at 06:36AM

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

07/10/2019 at 07:28AM

17
#284 - Peter Demin / @peterdemin

07/11/2019 at 05:45PM

17
#285 - Denis / @4NNTGudvin

07/12/2019 at 10:18AM

17
#286 - Crystal L / @Cartsly

07/13/2019 at 08:45PM

17
#287 - Ralph / @Ralph59017303

09/08/2019 at 10:02AM

18
#288 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#289 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#290 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#291 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#292 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#293 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#294 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#295 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#296 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#297 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#298 - seul / @seul15987381

06/20/2019 at 11:09AM

18
#299 - brypto / @hiimbenjy

10/01/2019 at 02:01AM

19
#300 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM