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 730 remaining solutions by signing in and submitting your own entry
#731 梁(Liang リャン) / @starduliang - Score: 208 - 03/01/20 @ 11:16
jk<C-V>jjjjxlllllllllllllllll<C-V>jjjjp<Esc><Esc>uh<C-V>jjjjp<Esc>uu<C-V>jjjjxlllllllllllhhhhf9h<C-V>jjjjp<Esc>u<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>uu<C-V>jjjjxllllllllllllllll<C-V>jjjjp<Esc>ul<C-V>jjjjI,<Esc><Esc><Esc>jjjjjl<C-V>jjjjx<Esc>bbbbbbbbbbbbbbbbl<C-V>jjjjI,<Esc>jjjjjj:w<CR>:wq<CR>

0 comments


Created by: @DustVoice

731 active golfers, 3254 entries

Leaderboard (lowest score wins):
13
#271 - otfsenter / @otfsenter

06/04/2020 at 02:53PM

13
#272 - Lakshitha Wijesinghe / @lakshithaww

06/21/2020 at 03:38AM

13
#273 - ligu / @ligu93586044

06/22/2020 at 10:10AM

13
#274 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 08:31PM

13
#275 - mocihan / @mocihan

06/30/2020 at 03:40PM

13
#276 - JLObject / @powful_panda

07/02/2020 at 02:37PM

13
#277 - Mitchell Horning / @HorningMitchell

07/14/2020 at 01:02PM

13
#278 - Saurabh / @Saurabh09299

07/23/2020 at 08:19AM

13
#279 - int@紅ぽよ / @int_cl

08/02/2020 at 04:29AM

13
#280 - Vinay Sharma / @VinaySh63956554

08/10/2020 at 05:20AM

13
#281 - mindgitrwx / @mindgitrwx

08/10/2020 at 10:53AM

13
#282 - Martin Bielik / @mabielik

08/10/2020 at 04:20PM

13
#283 - Андрей / @appomsk

08/21/2020 at 12:26PM

13
#284 - Andrew McKinlay / @ihavethecon

09/14/2020 at 07:24AM

13
#285 - mstronam / @mstronam

10/02/2020 at 07:04AM

13
#286 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 02:27PM

13
#287 - chocolate / @chocola81394123

10/27/2020 at 11:24AM

13
#288 - David Kutschke / @D4KU_

11/15/2020 at 03:38PM

13
#289 - ErQ325 / @EQ325

11/21/2020 at 05:55AM

13
#290 - roudens / @roudens2

12/05/2020 at 03:01PM

13
#291 - 영훈 / @odjfnrtm

12/29/2020 at 03:07PM

13
#292 - Duncan / @Duncan31503119

01/06/2021 at 04:18AM

13
#293 - Anh Duc TRAN / @__OwlBlaster__

01/09/2021 at 03:47PM

13
#294 - Ben Simmons / @Simmons_Ben

01/20/2021 at 03:27PM

13
#295 - Andreas Siegrist / @andreaszwei

01/21/2021 at 06:29PM

14
#296 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#297 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#298 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#299 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#300 - Arijus / @argshook

09/21/2018 at 06:45AM