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

901 active golfers, 3968 entries

Leaderboard (lowest score wins):
50
#871 - Adam Gaskins / @AdamGaskins

04/07/2025 at 08:05PM

51
#872 - Jonny Wilson / @thejondom

12/22/2018 at 05:57PM

51
#873 - Joe Farnsworth / @JoeFarnsworth

03/27/2020 at 02:03AM

53
#874 - tuyen / @tuyen66827418

11/21/2018 at 10:17AM

53
#875 - dandragona / @dandragona

09/08/2024 at 03:49PM

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

08/06/2020 at 01:50AM

55
#877 - stefg / @stefg

10/17/2018 at 06:00AM

56
#878 - fff / @fff51460170

01/06/2021 at 02:28AM

57
#879 - Pavlo Hadzheha / @PHadzheha

01/31/2021 at 06:19PM

58
#880 - beew71493 / @beew71493

12/12/2018 at 08:49PM

58
#881 - @abimelechbeutelbilch@fulda.social 𝕏 / @FHashitoku

07/29/2020 at 08:11AM

59
#882 - Di Peng / @DCodier

10/31/2018 at 05:07AM

62
#883 - dogmeat / @dogmeat11

10/24/2018 at 02:12PM

63
#884 - Matheus Rezende / @matheusr_dev

10/22/2018 at 09:16AM

66
#885 - Cole Hudson / @colejhudson

11/21/2018 at 06:08PM

69
#886 - thin-k-ing / @thin-k-ing

04/27/2025 at 03:04PM

71
#887 - Vim Golfer / @VimGolfer6

07/11/2019 at 12:07PM

72
#888 - Marshall Whittaker / @oxagast

07/10/2023 at 04:36PM

73
#889 - Bida Wa / @bida_wa

12/01/2019 at 07:58PM

78
#890 - Stefan(of93) / @Stefannn93

06/06/2019 at 09:49PM

81
#891 - Michael Elias / @mikowl

06/06/2019 at 06:40PM

83
#892 - Matt Tuttle / @Matt_Tuttle

08/10/2019 at 12:18AM

85
#893 - urandom / @ttyrandom

10/19/2018 at 02:36PM

92
#894 - minjikim / @minjiki38685196

10/10/2018 at 01:04PM

98
#895 - jeremy / @jeremy67339762

10/22/2019 at 02:59PM

98
#896 - nickGPT / @nickandbro

08/27/2024 at 04:57AM

109
#897 - swivelmargarita / @swivelmargarita

04/17/2024 at 12:10PM

110
#898 - Alvaro Melendez / @alvaromelendezh

02/21/2020 at 02:38AM

159
#899 - Matej Stuchlik / @mstuchli

06/06/2019 at 04:21PM

174
#900 - Die_marlone / @m8rl0n

10/02/2020 at 01:15PM