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 212 remaining solutions by signing in and submitting your own entry
#213 minjikim / @minjiki38685196 - Score: 92 - 10/10/18 @ 13:04
:<Up><Up><Up>g<Up><Up>/<BS>!/g<BS><CR>:g/<BS>!/^,/normal ^n<BS>0<BS>a,<BS><BS><BS>$x^a,<CR>:<Up><BS><BS><BS><BS><BS>^x$i,<CR>u:<Up><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><BS><CR>:<0xe3><0x85><0x88><0xe3><0x85><0x82><BS><BS>wq<CR>

0 comments


Created by: @DustVoice

213 active golfers, 871 entries

Leaderboard (lowest score wins):
13
#61 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 07:47PM

13
#62 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

01/01/2019 at 09:18PM

13
#63 - Nate / @natedoran

01/02/2019 at 07:26AM

13
#64 - Daniel Hjelm / @dhjelm

01/02/2019 at 04:27PM

13
#65 - 波波 / @sbob87

01/04/2019 at 07:32AM

13
#66 - Valacar / @valacar

01/09/2019 at 05:50AM

13
#67 - abgalphabet / @abgalphabet

01/13/2019 at 02:44AM

13
#68 - Mangeart Yoric / @yoricm

01/17/2019 at 07:23AM

14
#69 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#70 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#71 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#72 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#73 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#74 - Rasmus Bergström / @JRasmusBm

09/21/2018 at 12:38PM

14
#75 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#76 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#77 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#78 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#79 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#80 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#81 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM

14
#82 - matthew brett / @matthewbrett

10/28/2018 at 08:47AM

14
#83 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 04:45PM

14
#84 - zaperrer / @zaperrer

11/07/2018 at 07:53PM

14
#85 - Nir Givon / @nir_givon

11/08/2018 at 12:31PM

14
#86 - Wouter Horlings / @Achilleshiel

11/08/2018 at 02:24PM

14
#87 - slithy2000 / @slithy2000

11/12/2018 at 09:37AM

14
#88 - Michael Rose / @mdroseDev

11/23/2018 at 12:44AM

14
#89 - Joeoe / @joeoe_

11/24/2018 at 03:05PM

14
#90 - samsuma000 / @samsuma000

11/27/2018 at 10:20PM