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, 3863 entries

Leaderboard (lowest score wins):
24
#691 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:58PM

24
#692 - Chris AtLee / @chrisatlee

03/04/2019 at 04:28PM

24
#693 - Mike Harris / @MikeMJHarris

04/10/2019 at 01:59PM

24
#694 - Καράτε Μόνο / @karate_mono

06/06/2019 at 07:47AM

24
#695 - Rafael Gumieri / @rgumieri

06/06/2019 at 12:08PM

24
#696 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 05:18PM

24
#697 - canolias / @canolias

02/23/2020 at 11:08AM

24
#698 - Christophe Robillard / @krichtof

05/23/2020 at 09:36AM

24
#699 - Brian :| / @Seeemplicity

12/29/2020 at 10:39AM

24
#700 - Leon Si / @leonzalion

01/29/2021 at 09:28PM

25
#701 - unclewangshushu / @shuwushu

11/29/2018 at 06:13AM

25
#702 - Jasper Pangilinan / @JasperP

12/25/2018 at 12:05AM

25
#703 - Elias Daler / @EliasDaler

06/06/2019 at 09:39AM

25
#704 - Test Account / @testycc

06/30/2019 at 11:49AM

25
#705 - deHman89 / @danho89

07/08/2019 at 11:55AM

25
#706 - Алексей Кашуба / @Alex_Kashuba

09/14/2019 at 10:25PM

25
#707 - Patrick / @Pattywack18

01/17/2020 at 01:48AM

25
#708 - hereforthepermission / @herefortheperm1

01/24/2020 at 04:17AM

25
#709 - Felix Linhardt / @FelixLinhardt

03/20/2022 at 10:13PM

25
#710 - tooliltoolate / @tooliltoolate

10/10/2024 at 02:59PM

26
#711 - Juan / @jubujjamer

10/15/2018 at 07:09PM

26
#712 - Hunter Tidwell / @hunter2tidwell

10/23/2018 at 05:18AM

26
#713 - Bennett / @bennettbackward

12/20/2018 at 12:02PM

26
#714 - Phil Devitt / @GeneralHav0k

01/01/2019 at 01:52PM

26
#715 - Nikos Koukis / @bergercookie12

01/03/2019 at 05:17PM

26
#716 - Quinn Collins / @Quinn00239061

05/07/2019 at 01:16PM

26
#717 - rvnjsphdmn / @rvnjsphdmn

05/08/2019 at 02:04PM

26
#718 - André Reigoto / @AndreReigoto

08/10/2019 at 05:04AM

26
#719 - vim-golf-requirement / @VRequirement

10/05/2020 at 04:59PM

27
#720 - vimgolfer1234 / @vimgolfer12342

10/24/2018 at 11:20PM