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

872 active golfers, 3856 entries

Leaderboard (lowest score wins):
13
#301 - Mateusz Eggink / @matheomate

04/15/2020 at 09:36PM

13
#302 - cyndiii-development / @cyndiiidevelop1

05/04/2020 at 06:17AM

13
#303 - iBhagwan / @iiBhagwan

05/11/2020 at 08:12AM

13
#304 - Jeff Cui / @jeffacce

05/12/2020 at 02:15PM

13
#305 - River Jiang / @riverjiang

05/14/2020 at 02:12AM

13
#306 - Anupam Mukherjee / @anupammukherjee

06/01/2020 at 10:04AM

13
#307 - Bob / @Bob37174065

06/01/2020 at 04:08PM

13
#308 - otfsenter / @otfsenter

06/04/2020 at 02:53PM

13
#309 - Super User / @WayanLW

06/21/2020 at 03:38AM

13
#310 - ligu / @ligu93586044

06/22/2020 at 10:10AM

13
#311 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 08:31PM

13
#312 - mocihan / @mocihan

06/30/2020 at 03:40PM

13
#313 - JLObject / @powful_panda

07/02/2020 at 02:37PM

13
#314 - Mitchell Horning / @HorningMitchell

07/14/2020 at 01:02PM

13
#315 - Saurabh / @Saurabh09299

07/23/2020 at 08:19AM

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

08/02/2020 at 04:29AM

13
#317 - Vinay Sharma / @VinaySh63956554

08/10/2020 at 05:20AM

13
#318 - mindgitrwx / @mindgitrwx

08/10/2020 at 10:53AM

13
#319 - Martin Bielik / @mabielik

08/10/2020 at 04:20PM

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

08/21/2020 at 12:26PM

13
#321 - Andrew McKinlay / @ihavethecon

09/14/2020 at 07:24AM

13
#322 - mstronam / @mstronam

10/02/2020 at 07:04AM

13
#323 - Leland Paul Kusmer / @lelandpaul

10/21/2020 at 02:27PM

13
#324 - chocolate / @chocola81394123

10/27/2020 at 11:24AM

13
#325 - David Kutschke / @D4KU_

11/15/2020 at 03:38PM

13
#326 - ErQ325 / @EQ325

11/21/2020 at 05:55AM

13
#327 - roudens / @roudens2

12/05/2020 at 03:01PM

13
#328 - 영훈 / @odjfnrtm

12/29/2020 at 03:07PM

13
#329 - Duncan / @Duncan31503119

01/06/2021 at 04:18AM

13
#330 - Anh Duc TRAN / @__OwlBlaster__

01/09/2021 at 03:47PM