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):
17
#151 - Clmi / @c_decaf

09/30/2018 at 07:30AM

17
#152 - davidkaskwith / @davidkaskwith

10/02/2018 at 01:52AM

17
#153 - Joel Schlosser / @joel_schlosser

10/03/2018 at 09:00PM

17
#154 - Florent Jaby / @Floby

10/09/2018 at 03:10PM

17
#155 - Jo / @Jo59893132

10/25/2018 at 05:39AM

17
#156 - Sxcy / @SxcyX

11/05/2018 at 03:35PM

17
#157 - Andreas Nordahl / @andreasnordahl

11/12/2018 at 12:44PM

17
#158 - Angry Dev / @AngryDev7

12/01/2018 at 02:45PM

17
#159 - aka / @aaik4

12/23/2018 at 02:38AM

17
#160 - sstar / @sstar60015687

12/26/2018 at 09:36AM

17
#161 - Brome / @Brome20887421

01/04/2019 at 09:27PM

17
#162 - Benny / @b1299709

01/05/2019 at 10:09PM

17
#163 - Kit Saels / @KitSaels

01/24/2019 at 10:12PM

17
#164 - churaki / @churaki

01/25/2019 at 10:02PM

17
#165 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:41PM

17
#166 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM

17
#167 - ui / @ui61065627

03/14/2019 at 07:29AM

18
#168 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#169 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#170 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#171 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#172 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#173 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

19
#174 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#175 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#176 - a / @UseForVim

10/03/2018 at 01:13PM

19
#177 - robinro / @robinro

10/05/2018 at 01:16PM

19
#178 - Paul Inc / @hiniol1982

10/18/2018 at 06:54PM

19
#179 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#180 - Commi / @hellocommi

11/25/2018 at 11:30PM