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

394 active golfers, 1698 entries

Leaderboard (lowest score wins):
13
#121 - Kris Ezra / @kris_ezra

06/06/2019 at 05:16AM

13
#122 - Miles Edland / @ShutUpMiles

06/06/2019 at 06:25AM

13
#123 - Kristian Haug / @krimhaug

06/06/2019 at 07:13AM

13
#124 - Joo Ming / @JooMingJoo

06/06/2019 at 08:29AM

13
#125 - shay-tal / @shaytal

06/06/2019 at 09:55AM

13
#126 - Federico Ramirez / @gosukiwi

06/06/2019 at 03:20PM

13
#127 - Sean Johnston / @esran

06/06/2019 at 04:53PM

13
#128 - Ben Williams / @benw

06/06/2019 at 06:51PM

13
#129 - Khoyobegenn / @Khoyobegenn

06/07/2019 at 02:15AM

13
#130 - Andre Merzky / @AndreMerzky

06/07/2019 at 05:30AM

13
#131 - Graeme Smith / @InstaGraeme

06/07/2019 at 09:06PM

13
#132 - zealotrush / @zealotrush

06/12/2019 at 05:52AM

13
#133 - Martijn Brekelmans / @Azeirah

06/17/2019 at 05:51PM

13
#134 - Giggles MacChumpsworth / @macchumpsworth

07/03/2019 at 03:18AM

13
#135 - garry quested / @GQuested

07/03/2019 at 11:59AM

13
#136 - hielke / @hielke24840788

07/07/2019 at 11:36AM

13
#137 - Nathan Knox / @the_nathan_knox

07/11/2019 at 02:24PM

14
#138 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#139 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#140 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#141 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#142 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#143 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#144 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#145 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#146 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#147 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#148 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#149 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM

14
#150 - matthew brett / @matthewbrett

10/28/2018 at 08:47AM