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

528 active golfers, 2302 entries

Leaderboard (lowest score wins):
13
#181 - Chen-Hung Wu / @utah12005

10/09/2019 at 09:33PM

13
#182 - kkscr / @kkscr1

10/13/2019 at 02:46PM

13
#183 - Lory / @Lory46845742

10/31/2019 at 03:05PM

13
#184 - Chris Covert / @covertcj

11/07/2019 at 08:23PM

13
#185 - Ebi / @ehan6

11/19/2019 at 08:22AM

13
#186 - bassnecter / @lothedr

11/23/2019 at 04:02PM

13
#187 - shota_ogswr / @shota_ogasawara

11/24/2019 at 02:45PM

13
#188 - fewfold / @fewfold

11/29/2019 at 04:08PM

13
#189 - HypoTech / @Obongoetco

12/08/2019 at 11:15AM

13
#190 - Maksim / @its_terra

01/01/2020 at 05:50PM

13
#191 - Jörg Meyer / @JoergMy

01/05/2020 at 05:20PM

13
#192 - lev / @nouvelliu

01/10/2020 at 08:11AM

14
#193 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#194 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#195 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#196 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#197 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#198 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#199 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#200 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#201 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#202 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#203 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#204 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM

14
#205 - matthew brett / @matthewbrett

10/28/2018 at 08:47AM

14
#206 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 04:45PM

14
#207 - zaperrer / @zaperrer

11/07/2018 at 07:53PM

14
#208 - Nir Givon / @nir_givon

11/08/2018 at 12:31PM

14
#209 - Wouter Horlings / @Achilleshiel

11/08/2018 at 02:24PM

14
#210 - slithy2000 / @slithy2000

11/12/2018 at 09:37AM