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 9v0060a458ec000000000205

Make list of numbers from 1 to 30 more compact, but more confusing

Change the naming logic of numbers to end up with less lines.

Start file
one = 1
two = 2
three = 3
four = 4
five = 5
six = 6
seven = 7
eight = 8
nine = 9
ten = 10
eleven = 11
twelve = 12
thirteen = 13
fourteen = 14
fifteen = 15
sixteen = 16
seventeen = 17
eighteen = 18
nineteen = 19
twenty = 20
twenty_one = 21
twenty_two = 22
twenty_three = 23
twenty_four = 24
twenty_five = 25
twenty_six = 26
twenty_seven = 27
twenty_eight = 28
twenty_nine = 29
thirty = 30
End file
one = 1
two = 2
three = 3
four = 4
five = 5
six = 6
seven = 7
eight = 8
nine = 9
ten = 10
eleven = [11, 12, 13]
tweleven = [14, 15, 16]
threleven = [17, 18, 19]
twenty = 20
twelve = [21, 22, 23]
twolve = [24, 25, 26]
threlve = [27, 28, 29]
thirty = 30

View Diff

11,19c11,13
< eleven = 11
< twelve = 12
< thirteen = 13
< fourteen = 14
< fifteen = 15
< sixteen = 16
< seventeen = 17
< eighteen = 18
< nineteen = 19
---
> eleven = [11, 12, 13]
> tweleven = [14, 15, 16]
> threleven = [17, 18, 19]
21,29c15,17
< twenty_one = 21
< twenty_two = 22
< twenty_three = 23
< twenty_four = 24
< twenty_five = 25
< twenty_six = 26
< twenty_seven = 27
< twenty_eight = 28
< twenty_nine = 29
---
> twelve = [21, 22, 23]
> twolve = [24, 25, 26]
> threlve = [27, 28, 29]

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 35 remaining solutions by signing in and submitting your own entry
#36 X audio / @X_xaudio - Score: 254 - 05/30/21 @ 23:09
11Gllllllllli[jkl<BS><BS><BS><Esc>lla, 12, 14<BS>3]<Esc>jhi[jk<BS><BS><Esc>llla<BS>4, 15, 16]<Esc>jkhhhhhhhhhhhhhhhhiejk<BS><BS><Esc>lllinj<BS><Esc>jd5<CR>ddkothreleven = [17, 19<BS>8, 19]j<BS><Esc>jjkjhhhhi<BS><BS><BS><BS>jk<Esc>kjhhhhhhhdGotwele<BS>ve = [21, 22, 23]<CR>twolve = [27<BS>4, 24, <BS><BS><BS>5, 26]<CR>threlve = [27, 28, 29]<CR>thirty = 30<Esc>:w<CR>:q<CR>

0 comments


Created by: @tuure_p

36 active golfers, 90 entries

Leaderboard (lowest score wins):
74
#1 - tien / @tien40766111

11/22/2023 at 12:25PM

75
#2 - Petro Тrouq / @zulolosi

10/07/2021 at 09:46PM

75
#3 - Topvimgolf Score / @topvimgolfscore

10/15/2022 at 02:53PM

77
#4 - Miłosz Łakomy / @foobar01123

05/26/2021 at 09:41AM

77
#5 - Luoyb / @Luoyb

10/23/2023 at 07:50AM

81
#6 - Kurtis D. Miller / @phdkurt

05/25/2021 at 05:07PM

87
#7 - Trần Chí Thiện / @tecix

08/19/2021 at 04:18AM

87
#8 - Tanzeel Kazi / @tanzeelkazi

10/13/2021 at 07:06PM

91
#9 - Georg Bökman / @BokmanGeorg

07/02/2021 at 02:44PM

91
#10 - Martin Bielik / @mabielik

08/06/2021 at 08:06AM

96
#11 - Kyle / @Kyle98675198

05/29/2021 at 09:15PM

97
#12 - Youngchan Lee / @edwardycl

05/27/2021 at 08:13AM

100
#13 - vuems / @vuems2win

11/22/2022 at 12:21AM

103
#14 - paul / @pollpaulack

05/30/2021 at 05:50PM

104
#15 - ⚫ hgtp://Shifor 🛠️ / @shifor_gnome

10/12/2021 at 01:05PM

104
#16 - sap / @sap38838304

09/30/2022 at 04:03PM

106
#17 - grsh / @girish_i_am

05/21/2021 at 01:40PM

106
#18 - Gokul Soumya / @gokulsoumya

06/10/2021 at 06:53AM

107
#19 - Josh Swift / @Swiftyfish14

06/22/2021 at 09:53PM

108
#20 - Hugh / @haquaman

05/28/2021 at 04:28AM

110
#21 - kmh1622@jagmail.southalabama.edu / @kmh1622

05/30/2021 at 07:53AM

115
#22 - neil / @im_needle

06/20/2021 at 11:28AM

122
#23 - SwordSwordSwordBird / @SwordSwordBird

06/01/2021 at 06:33AM

128
#24 - Manas / @weirdsmiley_

06/16/2021 at 02:59AM

128
#25 - Jye / @jyesawtellrickson

04/17/2024 at 08:52AM

142
#26 - dotvimrc / @dotvimrc1

05/26/2021 at 06:55AM

147
#27 - Andey / @AndyonZ

12/28/2021 at 03:27AM

151
#28 - Peter Salvi / @salvipeter

05/21/2021 at 12:18PM

159
#29 - wangfengguo / @wangfengguo

05/26/2021 at 04:24PM

162
#30 - Sergio / @SergioVl12

07/24/2021 at 06:52AM