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 482 remaining solutions by signing in and submitting your own entry
#483 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

483 active golfers, 2090 entries

Leaderboard (lowest score wins):
41
#451 - freehaha / @freehaha

08/28/2019 at 05:14AM

42
#452 - Philip Stephenson / @philip_iv

07/19/2019 at 09:09PM

43
#453 - Tom Smeding / @TomSmeding

11/05/2018 at 10:27PM

43
#454 - Matze / @ebaharilikult

11/20/2018 at 07:16AM

44
#455 - Fabio Branquinho / @branquif

11/08/2018 at 12:36PM

44
#456 - Joe Francis / @lostapathy

01/13/2019 at 05:27PM

44
#457 - Bruce Park / @bpark0

03/11/2019 at 12:06AM

44
#458 - How It DO / @thatshowitdo

06/07/2019 at 03:19AM

46
#459 - Why Am / @WhysDeCatOnFire

11/07/2018 at 07:08PM

46
#460 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 01:52PM

47
#461 - Calvin Fong / @LordyBaka

11/03/2018 at 10:58AM

48
#462 - Ketan Agrawal / @_ketan0_

10/04/2018 at 03:26AM

48
#463 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 07:18PM

48
#464 - MGJoe93 / @mgjoe93

03/06/2019 at 12:19PM

48
#465 - Vimfiz / @vimfiz

03/21/2019 at 12:20AM

50
#466 - LucaSimplon / @LucaSimplon

11/18/2018 at 08:05PM

50
#467 - Iggy / @iggredible

09/11/2019 at 03:54AM

51
#468 - Jonny Wilson / @thejondom

12/22/2018 at 05:57PM

53
#469 - tuyen / @tuyen66827418

11/21/2018 at 10:17AM

55
#470 - stefg / @stefg

10/17/2018 at 06:00AM

58
#471 - beew71493 / @beew71493

12/12/2018 at 08:49PM

59
#472 - Di Peng / @DCodier

10/31/2018 at 05:07AM

62
#473 - dogmeat / @dogmeat11

10/24/2018 at 02:12PM

63
#474 - Matheus Rezende / @matheusr_dev

10/22/2018 at 09:16AM

66
#475 - Cole Hudson / @colejhudson

11/21/2018 at 06:08PM

71
#476 - Vim Golfer / @VimGolfer6

07/11/2019 at 12:07PM

78
#477 - Stefan(of93) / @Stefannn93

06/06/2019 at 09:49PM

81
#478 - Michael Elias / @mikowl

06/06/2019 at 06:40PM

83
#479 - Matt Tuttle / @Matt_Tuttle

08/10/2019 at 12:18AM

85
#480 - urandom / @ttyrandom

10/19/2018 at 02:36PM