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):
20
#151 - Rossi / @mrossinek

12/04/2018 at 07:16PM

20
#152 - Vending Machine / @storyn26383

12/16/2018 at 06:57AM

21
#153 - diego olivera / @alejo_olivera

09/19/2018 at 08:53PM

21
#154 - kyoyachuan / @kyoyachuan0626

10/03/2018 at 09:19AM

22
#155 - Apbsub / @apbsub

09/30/2018 at 01:28AM

22
#156 - Thomas Hughes / @ThomasH06049710

10/14/2018 at 02:59PM

22
#157 - steve N ӾlvЮ / @xlvio

11/17/2018 at 07:02PM

22
#158 - Jacob Xu / @jacobhxu

12/07/2018 at 04:24AM

22
#159 - TimMcGuire / @mcguire

12/24/2018 at 03:42PM

23
#160 - Martin Nordgren / @MartinJNordgren

09/21/2018 at 08:56AM

23
#161 - Jacky Tian / @xjtian

11/29/2018 at 06:33AM

23
#162 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:03PM

24
#163 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:32AM

24
#164 - Kim Hwa Joong / @hanmwoi

10/13/2018 at 04:39PM

24
#165 - Dave Brda / @BrdaDave

10/24/2018 at 01:53AM

24
#166 - PJ Frazer / @pj_frazer

11/22/2018 at 03:35AM

25
#167 - unclewangshushu / @shuwushu

11/29/2018 at 06:13AM

25
#168 - Jasper Pangilinan / @JasperP

12/25/2018 at 12:05AM

26
#169 - Juan / @jubujjamer

10/15/2018 at 07:09PM

26
#170 - Hunter Tidwell / @hunter2tidwell

10/23/2018 at 05:18AM

26
#171 - Bennett / @bennettbackward

12/20/2018 at 12:02PM

26
#172 - Phil Devitt / @GeneralHav0k

01/01/2019 at 01:52PM

26
#173 - Nikos Koukis / @bergercookie12

01/03/2019 at 05:17PM

27
#174 - Lars Haalck / @larshulk

10/05/2018 at 02:26PM

27
#175 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:20PM

27
#176 - Sören Schellhoff / @Jackokomm

11/18/2018 at 03:26PM

28
#177 - Sam Kim / @samkimhis

10/11/2018 at 06:28AM

28
#178 - greengreen / @greengr09073862

11/15/2018 at 04:26AM

28
#179 - Juliette but spooky / @namebrandloser

11/16/2018 at 08:40PM

29
#180 - Dax / @daaawx

10/15/2018 at 06:35PM