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

435 active golfers, 1847 entries

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

04/04/2019 at 02:23AM

13
#122 - Norbert / @mullno

04/18/2019 at 07:26PM

13
#123 - Bruce Woodward / @b00ffer

04/21/2019 at 06:48PM

13
#124 - ow / @ow34480012

04/30/2019 at 07:46PM

13
#125 - Arno / @arnoxmp

05/10/2019 at 07:35AM

13
#126 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:50PM

13
#127 - alexandrasou / @alexandrasou2

05/22/2019 at 12:53PM

13
#128 - mkaminaga / @mkmng3

06/05/2019 at 08:47AM

13
#129 - Kris Ezra / @kris_ezra

06/06/2019 at 05:16AM

13
#130 - Miles Edland / @ShutUpMiles

06/06/2019 at 06:25AM

13
#131 - Kristian Haug / @krimhaug

06/06/2019 at 07:13AM

13
#132 - Joo Ming / @JooMingJoo

06/06/2019 at 08:29AM

13
#133 - shay-tal / @shaytal

06/06/2019 at 09:55AM

13
#134 - Federico Ramirez / @gosukiwi

06/06/2019 at 03:20PM

13
#135 - Sean Johnston / @esran

06/06/2019 at 04:53PM

13
#136 - Ben Williams / @benw

06/06/2019 at 06:51PM

13
#137 - Khoyobegenn / @Khoyobegenn

06/07/2019 at 02:15AM

13
#138 - Andre Merzky / @AndreMerzky

06/07/2019 at 05:30AM

13
#139 - Graeme Smith / @InstaGraeme

06/07/2019 at 09:06PM

13
#140 - zealotrush / @zealotrush

06/12/2019 at 05:52AM

13
#141 - Martijn Brekelmans / @Azeirah

06/17/2019 at 05:51PM

13
#142 - Giggles MacChumpsworth / @macchumpsworth

07/03/2019 at 03:18AM

13
#143 - garry quested / @GQuested

07/03/2019 at 11:59AM

13
#144 - hielke / @hielke24840788

07/07/2019 at 11:36AM

13
#145 - Nathan Knox / @the_nathan_knox

07/11/2019 at 02:24PM

13
#146 - りんご / @ringo9971

08/06/2019 at 08:54AM

13
#147 - Bradley M. Small / @BradleySmall

08/10/2019 at 04:28AM

13
#148 - Marco Mannucci / @markomannux

08/24/2019 at 08:36PM

13
#149 - Baine Wedlock / @BaineWedlock

09/12/2019 at 09:00AM

13
#150 - Abner jr / @Abnerjr19

09/15/2019 at 01:30PM