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

297 active golfers, 1277 entries

Leaderboard (lowest score wins):
13
#91 - Tinko Minko / @tandikula

02/04/2019 at 09:37PM

13
#92 - T A / @SirAviles

02/13/2019 at 11:41AM

13
#93 - sjcomp / @sjcomp

02/25/2019 at 03:36PM

13
#94 - chenqiqi / @chenqiqi13

03/12/2019 at 12:05PM

13
#95 - enji / @enji_ja

03/18/2019 at 04:39PM

13
#96 - k24w24 / @k24w24

03/20/2019 at 03:47PM

13
#97 - wanghbxxxx / @wanghbxxxx

04/04/2019 at 02:23AM

13
#98 - Norbert / @mullno

04/18/2019 at 07:26PM

13
#99 - Bruce Woodward / @b00ffer

04/21/2019 at 06:48PM

13
#100 - ow / @ow34480012

04/30/2019 at 07:46PM

13
#101 - Arno / @arnoxmp

05/10/2019 at 07:35AM

13
#102 - Daniel Hakimian / @danrafhak

05/15/2019 at 03:50PM

13
#103 - alexandrasou / @alexandrasou2

05/22/2019 at 12:53PM

14
#104 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#105 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#106 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#107 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#108 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#109 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#110 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#111 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#112 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#113 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#114 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#115 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM

14
#116 - matthew brett / @matthewbrett

10/28/2018 at 08:47AM

14
#117 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 04:45PM

14
#118 - zaperrer / @zaperrer

11/07/2018 at 07:53PM

14
#119 - Nir Givon / @nir_givon

11/08/2018 at 12:31PM

14
#120 - Wouter Horlings / @Achilleshiel

11/08/2018 at 02:24PM