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):
13
#211 - JulianW / @JulianWgs

11/01/2018 at 11:07PM

13
#212 - Mike Adams / @davis_cromwell

11/02/2018 at 03:15AM

13
#213 - ForVimGolfReally / @VimFor

11/08/2018 at 11:37PM

13
#214 - Sando Itchi / @sando_itchi

11/11/2018 at 08:10PM

13
#215 - justed / @justevild

11/12/2018 at 09:29PM

13
#216 - name / @name65894813

11/14/2018 at 04:10PM

13
#217 - Levi Self / @LeviRSelf

11/18/2018 at 04:43AM

13
#218 - Mihai / @mihaicristiant

11/26/2018 at 01:03PM

13
#219 - Cabal51 / @Cabal51

12/06/2018 at 12:12AM

13
#220 - io / @iovis9

12/06/2018 at 01:03PM

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

12/07/2018 at 07:21AM

13
#222 - Quark / @PuzzleQuark

12/12/2018 at 12:01AM

13
#223 - Ackman Syntax Error / @AckmanSux

12/21/2018 at 07:47PM

13
#224 - Dany Alexander Caro Saavedra / @DanyAlexanderC7

01/01/2019 at 09:18PM

13
#225 - Nate / @natedoran

01/02/2019 at 07:26AM

13
#226 - Daniel Hjelm / @dhjelm

01/02/2019 at 04:27PM

13
#227 - 波波 / @sbob87

01/04/2019 at 07:32AM

13
#228 - Valacar / @valacar

01/09/2019 at 05:50AM

13
#229 - abgalphabet / @abgalphabet

01/13/2019 at 02:44AM

13
#230 - Mangeart Yoric / @yoricm

01/17/2019 at 07:23AM

13
#231 - bajidu / @bajidu

01/27/2019 at 12:38AM

13
#232 - tenteke / @kuskus3

01/27/2019 at 07:13AM

13
#233 - Dan / @dstein64

01/28/2019 at 06:15AM

13
#234 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:19PM

13
#235 - Rasmus Bergström / @JRasmusBm

02/02/2019 at 04:48PM

13
#236 - Tinko Minko / @tandikula

02/04/2019 at 09:37PM

13
#237 - T A / @SirAviles

02/13/2019 at 11:41AM

13
#238 - sjcomp / @sjcomp

02/25/2019 at 03:36PM

13
#239 - chenqiqi / @chenqiqi13

03/12/2019 at 12:05PM

13
#240 - enji / @enji_ja

03/18/2019 at 04:39PM