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

214 active golfers, 872 entries

Leaderboard (lowest score wins):
29
#181 - Dax / @daaawx

10/15/2018 at 06:35PM

29
#182 - Andre Cato / @DreBear800

10/30/2018 at 01:49AM

30
#183 - Zenghanzhang / @hzengroger

11/10/2018 at 06:32AM

31
#184 - gsvba / @gsvba

09/19/2018 at 08:29PM

31
#185 - Tojo Chacko / @tojochacko

09/21/2018 at 05:05AM

31
#186 - Shashank G Hegde / @shashankghegde

10/07/2018 at 07:03PM

31
#187 - Eli Edrian Tan / @eeveeedriantan

10/11/2018 at 12:46AM

31
#188 - m472 / @m4729

10/27/2018 at 12:07AM

31
#189 - Shunichi Kanade / @shunkana

11/18/2018 at 01:40AM

31
#190 - ´ú┐┬áMartijn Engler / @MartijnEngler

12/31/2018 at 07:58PM

31
#191 - wrglprmft / @wrglprmft

01/19/2019 at 08:58PM

33
#192 - Brent Woo / @BrentPWoo

10/01/2018 at 07:40PM

34
#193 - Jurica / @Jurica34581259

11/14/2018 at 11:16PM

38
#194 - xarfg / @xarphg

10/31/2018 at 01:14PM

38
#195 - Eric Moss / @NotEricMoss

11/04/2018 at 09:52PM

43
#196 - Tom Smeding / @TomSmeding

11/05/2018 at 10:27PM

43
#197 - Matze / @ebaharilikult

11/20/2018 at 07:16AM

44
#198 - Fabio Branquinho / @branquif

11/08/2018 at 12:36PM

44
#199 - Joe Francis / @lostapathy

01/13/2019 at 05:27PM

46
#200 - Why Am / @WhysDeCatOnFire

11/07/2018 at 07:08PM

47
#201 - Calvin Fong / @LordyBaka

11/03/2018 at 10:58AM

48
#202 - Ketan Agrawal / @ketanjayagrawal

10/04/2018 at 03:26AM

48
#203 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 07:18PM

50
#204 - LucaSimplon / @LucaSimplon

11/18/2018 at 08:05PM

51
#205 - Jonny Wilson / @thejondom

12/22/2018 at 05:57PM

53
#206 - tuyen / @tuyen66827418

11/21/2018 at 10:17AM

55
#207 - stefg / @stefg

10/17/2018 at 06:00AM

58
#208 - beew71493 / @beew71493

12/12/2018 at 08:49PM

59
#209 - Di Peng / @DCodier

10/31/2018 at 05:07AM

62
#210 - dogmeat / @dogmeat11

10/24/2018 at 02:12PM