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

726 active golfers, 3236 entries

Leaderboard (lowest score wins):
12
#121 - Olle Wiklund / @Kabix

07/31/2020 at 06:21AM

12
#122 - Bradley Pankow / @BTPankow

08/05/2020 at 10:25PM

12
#123 - Tanzeel Kazi / @tanzeelkazi

08/12/2020 at 04:19AM

12
#124 - dezhonger / @dezhonger

09/07/2020 at 12:00PM

12
#125 - 刘宏亮 / @CoyAkey

09/18/2020 at 07:24AM

12
#126 - lamtt77 / @lamtt77

10/09/2020 at 04:58AM

12
#127 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/09/2020 at 01:02PM

12
#128 - AAbraxas / @AAbraxas1

10/17/2020 at 07:47PM

12
#129 - Alice / @Alice92541388

10/19/2020 at 10:12PM

12
#130 - quemeraisc / @quemeraisc

11/05/2020 at 04:45PM

12
#131 - Joe Biden / @JoeBide11339644

11/15/2020 at 06:13AM

12
#132 - MrRubiksSC / @RubiksSc

11/27/2020 at 03:39AM

12
#133 - hepebexè / @hepebexe

11/28/2020 at 06:48PM

12
#134 - Ihor / @Ihor96382508

11/30/2020 at 07:10AM

12
#135 - Neverlandrunner / @neverlandrunner

12/06/2020 at 08:00AM

12
#136 - nd183 / @nd1832

12/10/2020 at 09:10AM

12
#137 - Ryan Way / @RyanWay16

12/15/2020 at 05:15AM

12
#138 - Jon Krause / @jkrause314

12/15/2020 at 04:53PM

12
#139 - Jung Yeon Park / @park_jungy

01/01/2021 at 07:42PM

12
#140 - Ray Dennis / @raysden

01/07/2021 at 10:19PM

12
#141 - Nicolas Pagny / @NicolasPagny

01/08/2021 at 11:31AM

12
#142 - A A A / @37fatos

01/09/2021 at 12:44AM

12
#143 - 김범준 / @kmbmjn

01/14/2021 at 06:44AM

13
#144 - Smylers / @Smylers2

09/18/2018 at 08:48AM

13
#145 - zmf_tim / @zmf_tim

09/18/2018 at 08:00PM

13
#146 - Epecb / @BceEpecb

09/19/2018 at 05:21PM

13
#147 - Yudi Matsuzake / @yudimatsuzake

09/19/2018 at 11:37PM

13
#148 - Harm te Hennepe / @HrmtH

09/20/2018 at 11:29AM

13
#149 - Saki Gw / @Sakigw

09/20/2018 at 01:28PM

13
#150 - Gayan Munasinghe / @gayanm

09/21/2018 at 11:40PM