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 763 remaining solutions by signing in and submitting your own entry
#764 æą(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

764 active golfers, 3410 entries

Leaderboard (lowest score wins):
44
#721 - Joe Francis / @lostapathy

01/13/2019 at 05:27PM

44
#722 - Bruce Park / @bpark0

03/11/2019 at 12:06AM

44
#723 - How It DO / @thatshowitdo

06/07/2019 at 03:19AM

44
#724 - Siddhartha [not giving away free coins] / @siddhartha_cryp

12/06/2019 at 08:57PM

45
#725 - Mellow Tractor / @mellowtractor

06/19/2020 at 02:34PM

46
#726 - Why Am / @WhysDeCatOnFire

11/07/2018 at 07:08PM

46
#727 - Benjamin Pelletier / @benjipelletier

09/25/2019 at 01:52PM

46
#728 - Bharath / @Bharath15952517

12/19/2020 at 08:25AM

47
#729 - Calvin Fong / @LordyBaka

11/03/2018 at 10:58AM

47
#730 - Steffen / @Pions90

02/14/2020 at 06:44PM

48
#731 - Ketan Agrawal / @_ketan0_

10/04/2018 at 03:26AM

48
#732 - Ainsley McGrath / @whole_grainsley

12/24/2018 at 07:18PM

48
#733 - MGJoe93 / @mgjoe93

03/06/2019 at 12:19PM

48
#734 - Vimfiz / @vimfiz

03/21/2019 at 12:20AM

48
#735 - Highteamoonweed / @Highteamoonwee1

04/12/2021 at 09:02PM

50
#736 - LucaSimplon / @LucaSimplon

11/18/2018 at 08:05PM

50
#737 - Iggy / @iggredible

09/11/2019 at 03:54AM

50
#738 - Abhishek Sriraman / @asriraman

11/01/2020 at 06:20PM

50
#739 - J Berc / @Jberczel

11/06/2021 at 01:38AM

51
#740 - Jonny Wilson / @thejondom

12/22/2018 at 05:57PM

51
#741 - Joe Farnsworth / @JoeFarnsworth

03/27/2020 at 02:03AM

53
#742 - tuyen / @tuyen66827418

11/21/2018 at 10:17AM

54
#743 - đ™đ™–đ™© đ™đ™šđ™©đ™–đ™§đ™™ Âź / @Rapists4Biden

08/06/2020 at 01:50AM

55
#744 - stefg / @stefg

10/17/2018 at 06:00AM

56
#745 - fff / @fff51460170

01/06/2021 at 02:28AM

57
#746 - Pavlo Hadzheha / @PHadzheha

01/31/2021 at 06:19PM

58
#747 - beew71493 / @beew71493

12/12/2018 at 08:49PM

58
#748 - Fukunishi Hashitoku / @FHashitoku

07/29/2020 at 08:11AM

59
#749 - Di Peng / @DCodier

10/31/2018 at 05:07AM

62
#750 - dogmeat / @dogmeat11

10/24/2018 at 02:12PM