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

650 active golfers, 2876 entries

Leaderboard (lowest score wins):
51
#631 - Joe Farnsworth / @JoeFarnsworth

03/27/2020 at 02:03AM

53
#632 - tuyen / @tuyen66827418

11/21/2018 at 10:17AM

55
#633 - stefg / @stefg

10/17/2018 at 06:00AM

58
#634 - beew71493 / @beew71493

12/12/2018 at 08:49PM

58
#635 - Fukunishi Hashitoku / @FHashitoku

07/29/2020 at 08:11AM

59
#636 - Di Peng / @DCodier

10/31/2018 at 05:07AM

62
#637 - dogmeat / @dogmeat11

10/24/2018 at 02:12PM

63
#638 - Matheus Rezende / @matheusr_dev

10/22/2018 at 09:16AM

66
#639 - Cole Hudson / @colejhudson

11/21/2018 at 06:08PM

71
#640 - Vim Golfer / @VimGolfer6

07/11/2019 at 12:07PM

73
#641 - Bida Wa / @bida_wa

12/01/2019 at 07:58PM

78
#642 - Stefan(of93) / @Stefannn93

06/06/2019 at 09:49PM

81
#643 - Michael Elias / @mikowl

06/06/2019 at 06:40PM

83
#644 - Matt Tuttle / @Matt_Tuttle

08/10/2019 at 12:18AM

85
#645 - urandom / @ttyrandom

10/19/2018 at 02:36PM

92
#646 - minjikim / @minjiki38685196

10/10/2018 at 01:04PM

98
#647 - jeremy / @jeremy67339762

10/22/2019 at 02:59PM

110
#648 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 02:38AM

159
#649 - Matej Stuchlik / @mstuchli

06/06/2019 at 04:21PM

208
#650 - 梁(Liang リャン) / @starduliang

03/01/2020 at 11:16AM