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

259 active golfers, 1073 entries

Leaderboard (lowest score wins):
14
#91 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#92 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#93 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#94 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#95 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#96 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#97 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM

14
#98 - matthew brett / @matthewbrett

10/28/2018 at 08:47AM

14
#99 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 04:45PM

14
#100 - zaperrer / @zaperrer

11/07/2018 at 07:53PM

14
#101 - Nir Givon / @nir_givon

11/08/2018 at 12:31PM

14
#102 - Wouter Horlings / @Achilleshiel

11/08/2018 at 02:24PM

14
#103 - slithy2000 / @slithy2000

11/12/2018 at 09:37AM

14
#104 - Michael Rose / @mdroseDev

11/23/2018 at 12:44AM

14
#105 - Joeoe / @joeoe_

11/24/2018 at 03:05PM

14
#106 - samsuma000 / @samsuma000

11/27/2018 at 10:20PM

14
#107 - diwa / @Di_nate_

12/06/2018 at 10:00AM

14
#108 - alex m / @al_mk_

12/10/2018 at 08:04PM

14
#109 - Parsa Amini / @ParsaAmini

03/19/2019 at 04:15PM

15
#110 - tPenguinLTG / @tpenguinltg

09/18/2018 at 12:17AM

15
#111 - Jan Bundesmann / @janbundesmann

09/18/2018 at 02:16AM

15
#112 - Sean / @SeanZhou1023

09/30/2018 at 02:37AM

15
#113 - Mihai Babiac / @MihaiBabiac

10/02/2018 at 01:52AM

15
#114 - Norbert / @mullno

10/03/2018 at 09:16PM

15
#115 - Keyboard Fire / @KeyboardFire

10/06/2018 at 08:12PM

15
#116 - 王有铭 / @coder_ming

10/21/2018 at 06:13AM

15
#117 - Adam / @askoufish

10/23/2018 at 05:12AM

15
#118 - Nikos Filippakis / @nikos_filip

11/12/2018 at 09:14AM

15
#119 - succcubbus / @succcubbus

11/20/2018 at 10:19PM

15
#120 - Oren Koriat / @KoriatOren

12/04/2018 at 04:01PM