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

901 active golfers, 3968 entries

Leaderboard (lowest score wins):
22
#691 - 伟哥 / @w15659018558

10/04/2020 at 07:20AM

22
#692 - Serhiy Prikhodko / @mastersnetru

11/18/2020 at 09:59AM

22
#693 - Nick Anishenko / @NAnishenko

03/26/2021 at 06:20PM

22
#694 - logtxt / @logtxt1

07/21/2021 at 02:17PM

22
#695 - seenz / @lefton_sean

05/14/2022 at 08:14PM

22
#696 - Ismael Jaras / @isjaras

05/21/2023 at 05:39PM

22
#697 - かみひろ / @km_hr

03/16/2024 at 01:08PM

22
#698 - Magnus Wahlstrand / @magnuswahlstrand

12/28/2024 at 12:57PM

23
#699 - Martin Nordgren / @MartinJNordgren

09/21/2018 at 08:56AM

23
#700 - Jacky Tian / @xjtian

11/29/2018 at 06:33AM

23
#701 - Marcio M Pereira / @iviarcio

12/21/2018 at 02:03PM

23
#702 - vince / @vincentvangott

03/03/2019 at 12:37PM

23
#703 - a60068 / @a60068

06/19/2019 at 01:37PM

23
#704 - 990 / @nisibasi990

12/05/2019 at 04:25PM

23
#705 - volandkit / @volandkit

04/20/2020 at 06:44PM

23
#706 - zapakh / @zapakh

01/21/2021 at 06:10AM

23
#707 - 0xf00ff00f / @0xf00ff00f

12/15/2022 at 12:17PM

23
#708 - Paul McDowell / @etothepi16

05/24/2024 at 08:45PM

24
#709 - Jonghyun Yun / @JonghyunYun

10/04/2018 at 03:32AM

24
#710 - Kim Hwa Joong / @hanmwoi

10/13/2018 at 04:39PM

24
#711 - Dave Brda / @BrdaDave

10/24/2018 at 01:53AM

24
#712 - PJ Frazer / @pj_frazer

11/22/2018 at 03:35AM

24
#713 - ieranstoiranstyu32npoierasnt / @ieranstoiranst1

02/08/2019 at 06:58PM

24
#714 - Chris AtLee / @chrisatlee

03/04/2019 at 04:28PM

24
#715 - Mike Harris / @MikeMJHarris

04/10/2019 at 01:59PM

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

06/06/2019 at 07:47AM

24
#717 - Rafael Gumieri / @rgumieri

06/06/2019 at 12:08PM

24
#718 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 05:18PM

24
#719 - canolias / @canolias

02/23/2020 at 11:08AM

24
#720 - Christophe Robillard / @krichtof

05/23/2020 at 09:36AM