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 434 remaining solutions by signing in and submitting your own entry
#435 Matej Stuchlik / @mstuchli - Score: 159 - 06/06/19 @ 16:21
<C-V>jjjjxpl.u.uuu<C-V>jjjj<Esc><Esc>kkkkqq<C-V>jjjjxpql@ql@@l@@l@@l@@l@@l@@l@@jjjjjhhhhhhhhhhhhhhhhhhhhllqq<C-V>jjjjxhhpqlll@qlll@@lll@@lll@@lll@@lll@@lll@@lll@@u@@u<C-V>jjjjxhp<Esc>:w<CR>:wqa<CR>

0 comments


Created by: @DustVoice

435 active golfers, 1847 entries

Leaderboard (lowest score wins):
13
#91 - Mike Adams / @davis_cromwell

11/02/2018 at 03:15AM

13
#92 - ForVimGolfReally / @VimFor

11/08/2018 at 11:37PM

13
#93 - 唐偉 / @tangw

11/11/2018 at 08:10PM

13
#94 - justed / @justevild

11/12/2018 at 09:29PM

13
#95 - name / @name65894813

11/14/2018 at 04:10PM

13
#96 - Levi Self / @LeviRSelf

11/18/2018 at 04:43AM

13
#97 - Mihai / @mihaicristiant

11/26/2018 at 01:03PM

13
#98 - Cabal51 / @Cabal51

12/06/2018 at 12:12AM

13
#99 - io / @iovis9

12/06/2018 at 01:03PM

13
#100 - あすたちん / @astatine0x55

12/07/2018 at 07:21AM

13
#101 - Quark / @PuzzleQuark

12/12/2018 at 12:01AM

13
#102 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 07:47PM

13
#103 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

01/01/2019 at 09:18PM

13
#104 - Nate / @natedoran

01/02/2019 at 07:26AM

13
#105 - Daniel Hjelm / @dhjelm

01/02/2019 at 04:27PM

13
#106 - 波波 / @sbob87

01/04/2019 at 07:32AM

13
#107 - Valacar / @valacar

01/09/2019 at 05:50AM

13
#108 - abgalphabet / @abgalphabet

01/13/2019 at 02:44AM

13
#109 - Mangeart Yoric / @yoricm

01/17/2019 at 07:23AM

13
#110 - bajidu / @bajidu

01/27/2019 at 12:38AM

13
#111 - tenteke / @kuskus3

01/27/2019 at 07:13AM

13
#112 - Daniel Steinberg / @dstein64

01/28/2019 at 06:15AM

13
#113 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:19PM

13
#114 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 04:48PM

13
#115 - Tinko Minko / @tandikula

02/04/2019 at 09:37PM

13
#116 - T A / @SirAviles

02/13/2019 at 11:41AM

13
#117 - sjcomp / @sjcomp

02/25/2019 at 03:36PM

13
#118 - chenqiqi / @chenqiqi13

03/12/2019 at 12:05PM

13
#119 - enji / @enji_ja

03/18/2019 at 04:39PM

13
#120 - k24w24 / @k24w24

03/20/2019 at 03:47PM