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 652 remaining solutions by signing in and submitting your own entry
#653 梁(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

653 active golfers, 2894 entries

Leaderboard (lowest score wins):
13
#241 - Deepak Talan / @d02d33pak

04/08/2020 at 05:52AM

13
#242 - RaylanFox / @RaylanFox

04/10/2020 at 01:09PM

13
#243 - Mateusz Eggink / @matheomate

04/15/2020 at 09:36PM

13
#244 - cyndiii-development / @cyndiiidevelop1

05/04/2020 at 06:17AM

13
#245 - Bhagwan / @El_Bhagwan

05/11/2020 at 08:12AM

13
#246 - Jeff Cui / @jeffacce

05/12/2020 at 02:15PM

13
#247 - River Jiang / @riverjiang

05/14/2020 at 02:12AM

13
#248 - Anupam Mukherjee / @anupammukherjee

06/01/2020 at 10:04AM

13
#249 - Bob / @Bob37174065

06/01/2020 at 04:08PM

13
#250 - otfsenter / @otfsenter

06/04/2020 at 02:53PM

13
#251 - Lakshitha Wijesinghe / @lakshithaww

06/21/2020 at 03:38AM

13
#252 - ligu / @ligu93586044

06/22/2020 at 10:10AM

13
#253 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 08:31PM

13
#254 - mocihan / @mocihan

06/30/2020 at 03:40PM

13
#255 - JLObject / @powful_panda

07/02/2020 at 02:37PM

13
#256 - Mitchell Horning / @HorningMitchell

07/14/2020 at 01:02PM

13
#257 - Saurabh / @Saurabh09299

07/23/2020 at 08:19AM

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

08/02/2020 at 04:29AM

14
#259 - Robin De Mol / @RobinDeMol

09/18/2018 at 01:42PM

14
#260 - Steve Bitner / @fourbitbots

09/19/2018 at 01:54AM

14
#261 - Anoop Kumar / @anooplive

09/19/2018 at 09:30PM

14
#262 - David Gustavsson / @mrGustaphe

09/20/2018 at 11:38AM

14
#263 - Arijus / @argshook

09/21/2018 at 06:45AM

14
#264 - jairoandre / @jairoandre

09/26/2018 at 01:06PM

14
#265 - golgi / @gloggyapparatus

10/01/2018 at 11:12PM

14
#266 - Roger Bongers / @RogerBongers

10/02/2018 at 02:22AM

14
#267 - Zutatensuppe / @Zutatensuppe

10/11/2018 at 01:11PM

14
#268 - Reuben Narkwo / @reubwo

10/16/2018 at 10:36PM

14
#269 - Anonymos / @cyou_teyi

10/25/2018 at 09:42AM

14
#270 - Finn Francis / @FinnFrancis

10/26/2018 at 08:10PM