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

529 active golfers, 2305 entries

Leaderboard (lowest score wins):
17
#331 - Mark Blakeney / @bulletmark

06/06/2019 at 06:43AM

17
#332 - Ayzen / @Ayzen

06/06/2019 at 09:11AM

17
#333 - Tripurari Shankar / @tripurari001

06/06/2019 at 11:05AM

17
#334 - Aurel / @AurelienFebvre

06/25/2019 at 07:53PM

17
#335 - Scott Schlesier / @sschlesier

07/01/2019 at 06:36AM

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

07/10/2019 at 07:28AM

17
#337 - Peter Demin / @peterdemin

07/11/2019 at 05:45PM

17
#338 - Denis / @4NNTGudvin

07/12/2019 at 10:18AM

17
#339 - Crystal L / @Cartsly

07/13/2019 at 08:45PM

17
#340 - Ralph / @Ralph59017303

09/08/2019 at 10:02AM

17
#341 - Max Williams / @notmaxbutmax

10/16/2019 at 12:06AM

17
#342 - Jonathan Medwig / @jmedwig

10/22/2019 at 05:40PM

17
#343 - Cardboard Cat / @CardboardCatMTG

10/24/2019 at 03:03AM

17
#344 - Joren Van Hee / @jorenvanhee

11/25/2019 at 10:33AM

17
#345 - jn / @j1357924

12/03/2019 at 04:22AM

17
#346 - Dan Kilman / @dan_kilman

12/18/2019 at 08:40PM

17
#347 - None / @sh1chuang

12/30/2019 at 12:55PM

17
#348 - Victor Chen / @VictorC89422342

01/10/2020 at 04:47PM

18
#349 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#350 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#351 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#352 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#353 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#354 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#355 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#356 - pebra / @pebrabb

05/10/2019 at 11:42AM

18
#357 - Abe Cede / @A_be_Cede

06/06/2019 at 12:25PM

18
#358 - dtjong / @dtjong2

06/07/2019 at 10:01PM

18
#359 - seul / @seul15987381

06/20/2019 at 11:09AM

18
#360 - brypto / @hiimbenjy

10/01/2019 at 02:01AM