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):
14
#91 - diwa / @Di_nate_

12/06/2018 at 10:00AM

14
#92 - alex m / @al_mk_

12/10/2018 at 08:04PM

15
#93 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#94 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#95 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#96 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM

15
#97 - Norbert / @mullno

10/03/2018 at 09:16PM

15
#98 - Keyboard Fire / @KeyboardFire

10/06/2018 at 08:12PM

15
#99 - 王有铭 / @coder_ming

10/21/2018 at 06:13AM

15
#100 - Adam / @askoufish

10/23/2018 at 05:12AM

15
#101 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:14AM

15
#102 - succcubbus / @succcubbus

11/20/2018 at 10:19PM

15
#103 - Oren Koriat / @KoriatOren

12/04/2018 at 04:01PM

15
#104 - mathestar / @mathestar

12/11/2018 at 12:05PM

15
#105 - Blah Blah / @BlahBla08410389

01/19/2019 at 05:48PM

16
#106 - DustVoice / @DustVoice

09/17/2018 at 09:51PM

16
#107 - Roch Mirabeau / @roch_kiss

09/19/2018 at 11:55PM

16
#108 - Sorrento Huang / @SorrentoHuang

09/20/2018 at 10:29AM

16
#109 - Jordan / @RiotChomey

09/21/2018 at 09:30PM

16
#110 - Jeff / @sir_wiggles3

09/24/2018 at 11:34PM

16
#111 - adeel hussain / @adeelhussain

09/25/2018 at 07:47AM

16
#112 - Bruce Adams / @bruceadams1054

10/08/2018 at 10:32AM

16
#113 - caplod / @caplod

10/16/2018 at 10:22PM

16
#114 - vg / @vg53210350

10/28/2018 at 06:42PM

16
#115 - Kasparas Lavrukaitis / @kaslvr

10/31/2018 at 04:27PM

16
#116 - Maas Lalani / @maaslalani

12/02/2018 at 08:54PM

16
#117 - lofoneax / @lofoneax

12/14/2018 at 10:17PM

16
#118 - Shafiq Jetha / @sjetha

12/18/2018 at 05:55PM

16
#119 - John Smith / @JohnSmi14480159

01/09/2019 at 10:45PM

17
#120 - captain_morgan / @captain_morgan

09/18/2018 at 02:44PM