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

295 active golfers, 1261 entries

Leaderboard (lowest score wins):
17
#181 - Benny / @b1299709

01/05/2019 at 10:09PM

17
#182 - Kit Saels / @KitSaels

01/24/2019 at 10:12PM

17
#183 - churaki / @churaki

01/25/2019 at 10:02PM

17
#184 - Michael Aquilina / @mikeaquilina4

02/02/2019 at 09:41PM

17
#185 - zenwalker / @zenwalker93

03/09/2019 at 01:22PM

17
#186 - ui / @ui61065627

03/14/2019 at 07:29AM

17
#187 - Duke Du / @DukeDu2

03/26/2019 at 03:15AM

17
#188 - 김현수 / @flyhigh43

04/27/2019 at 06:53PM

17
#189 - Izaak van Dongen / @goedel_gang

04/27/2019 at 11:53PM

18
#190 - Miki Tebeka / @tebeka

09/18/2018 at 12:26PM

18
#191 - Dominic Nunes / @domi91c

10/11/2018 at 03:13AM

18
#192 - Stefan Heyder / @Astheny_

10/15/2018 at 08:51AM

18
#193 - Chris Maher / @chrismaherthe

11/14/2018 at 03:47PM

18
#194 - Zeming Lin / @ebetica

01/17/2019 at 07:51PM

18
#195 - Thomas Branch / @twighk

01/27/2019 at 01:12PM

18
#196 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:24PM

18
#197 - pebra / @pebrabb

05/10/2019 at 11:42AM

19
#198 - S33 Dunda / @s33dUnda

09/18/2018 at 08:05PM

19
#199 - Sebastien Mesili / @seb_kr

09/29/2018 at 03:38AM

19
#200 - a / @UseForVim

10/03/2018 at 01:13PM

19
#201 - robinro / @robinro

10/05/2018 at 01:16PM

19
#202 - Paul Inc / @hiniol1982

10/18/2018 at 06:54PM

19
#203 - 茶々豆 / @chachamame0420

10/19/2018 at 12:37PM

19
#204 - Commi / @hellocommi

11/25/2018 at 11:30PM

19
#205 - Luis Rodriguez / @luisthecoder

01/03/2019 at 04:13AM

19
#206 - 강현 / @Applesquiz

01/20/2019 at 05:29PM

19
#207 - fucus / @fishlovebanana

02/21/2019 at 11:15AM

19
#208 - salmiak / @salmiak7

05/15/2019 at 11:15PM

20
#209 - Amir Rajan / @amirrajan

10/11/2018 at 08:14AM

20
#210 - Rossi / @mrossinek

12/04/2018 at 07:16PM