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 4d29ae2107e0177c7e000036

Before there was Farmville...

There was old MacDonald. For my toddler. The first Vim sing-a-long?

Start file
cows moo
horses neigh
ducks quack
geese honk
hens cluck
chicks peep
pigs oink
sheep baa
End file
Old MacDonald had a farm, E I E I O.
And on that farm he had a cow, E I E I O.
With a moo, moo here and a moo, moo there.
Here a moo, there a moo, everywhere a moo, moo.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a horse, E I E I O.
With a neigh, neigh here and a neigh, neigh there.
Here a neigh, there a neigh, everywhere a neigh, neigh.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a duck, E I E I O.
With a quack, quack here and a quack, quack there.
Here a quack, there a quack, everywhere a quack, quack.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a goose, E I E I O.
With a honk, honk here and a honk, honk there.
Here a honk, there a honk, everywhere a honk, honk.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a hen, E I E I O.
With a cluck, cluck here and a cluck, cluck there.
Here a cluck, there a cluck, everywhere a cluck, cluck.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a chick, E I E I O.
With a peep, peep here and a peep, peep there.
Here a peep, there a peep, everywhere a peep, peep.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a pig, E I E I O.
With an oink, oink here and an oink, oink there.
Here an oink, there an oink, everywhere an oink, oink.
Old MacDonald had a farm, E I E I O.

Old MacDonald had a farm, E I E I O.
And on that farm he had a sheep, E I E I O.
With a baa, baa here and a baa, baa there.
Here a baa, there a baa, everywhere a baa, baa.
Old MacDonald had a farm, E I E I O.

View Diff

1,8c1,47
< cows moo
< horses neigh
< ducks quack
< geese honk
< hens cluck
< chicks peep
< pigs oink
< sheep baa
---
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a cow, E I E I O.
> With a moo, moo here and a moo, moo there.
> Here a moo, there a moo, everywhere a moo, moo.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a horse, E I E I O.
> With a neigh, neigh here and a neigh, neigh there.
> Here a neigh, there a neigh, everywhere a neigh, neigh.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a duck, E I E I O.
> With a quack, quack here and a quack, quack there.
> Here a quack, there a quack, everywhere a quack, quack.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a goose, E I E I O.
> With a honk, honk here and a honk, honk there.
> Here a honk, there a honk, everywhere a honk, honk.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a hen, E I E I O.
> With a cluck, cluck here and a cluck, cluck there.
> Here a cluck, there a cluck, everywhere a cluck, cluck.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a chick, E I E I O.
> With a peep, peep here and a peep, peep there.
> Here a peep, there a peep, everywhere a peep, peep.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a pig, E I E I O.
> With an oink, oink here and an oink, oink there.
> Here an oink, there an oink, everywhere an oink, oink.
> Old MacDonald had a farm, E I E I O.
> 
> Old MacDonald had a farm, E I E I O.
> And on that farm he had a sheep, E I E I O.
> With a baa, baa here and a baa, baa there.
> Here a baa, there a baa, everywhere a baa, baa.
> Old MacDonald had a farm, E I E I O.

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 48 remaining solutions by signing in and submitting your own entry
#49 じょんあば / @john_ababa - Score: 1754 - 02/26/12 @ 11:54
cGOld MacDonald had a farm, E I E I O.<CR>And on that farm he had a cow, E I E I O.<CR>With a moo, moo here and a moo, moo there.<CR>Here a moo, there a moo, everywhere a moo, moo.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a horse, E I E I O.<CR>With a neigh, neigh here and a neigh, neigh there.<CR>Here a neigh, there a neigh, everywhere a neigh, neigh.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a duck, E I E I O.<CR>With a quack, quack here and a quack, quack there.<CR>Here a quack, there a quack, everywhere a quack, quack.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a goose, E I E I O.<CR>With a honk, honk here and a honk, honk there.<CR>Here a honk, there a honk, everywhere a honk, honk.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a hen, E I E I O.<CR>With a cluck, cluck here and a cluck, cluck there.<CR>Here a cluck, there a cluck, everywhere a cluck, cluck.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a chick, E I E I O.<CR>With a peep, peep here and a peep, peep there.<CR>Here a peep, there a peep, everywhere a peep, peep.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a pig, E I E I O.<CR>With an oink, oink here and an oink, oink there.<CR>Here an oink, there an oink, everywhere an oink, oink.<CR>Old MacDonald had a farm, E I E I O.<CR><CR>Old MacDonald had a farm, E I E I O.<CR>And on that farm he had a sheep, E I E I O.<CR>With a baa, baa here and a baa, baa there.<CR>Here a baa, there a baa, everywhere a baa, baa.<CR>Old MacDonald had a farm, E I E I O.<Esc><Esc>ZZ

0 comments


Created by: @gumnos

49 active golfers, 101 entries

Leaderboard (lowest score wins):
156
#1 - Victor Ramirez / @virako

10/18/2012 at 12:01AM

156
#2 - Peppa Pig / @PeppaPi95550250

10/11/2024 at 01:24AM

157
#3 - Urtica dioica / @udioica

05/25/2013 at 11:44PM

157
#4 - Petro Тrouq / @zulolosi

07/06/2013 at 10:41AM

157
#5 - John Braxler / @braxler

10/10/2014 at 06:30PM

162
#6 - Rod Knowlton / @codelahoma

05/26/2012 at 11:20AM

163
#7 - Justin Love / @wondible

09/02/2011 at 05:41AM

165
#8 - Wei Dai / @clvv42

01/14/2011 at 12:24AM

165
#9 - Hu Junfeng / @junfeng

08/01/2011 at 08:31AM

170
#10 - h_east (トロッコ6個) / @h_east

02/18/2011 at 11:39PM

173
#11 - Federico Galassi / @federicogalassi

01/10/2011 at 04:11AM

196
#12 - hiding / @I_haveno_name

10/09/2013 at 11:54AM

200
#13 - Saki Gw / @Sakigw

04/14/2017 at 07:07PM

202
#14 - Steve Morrow / @yawmark

01/26/2011 at 06:51PM

206
#15 - Rob Ciaccio / @RobertoCalavera

01/18/2011 at 12:01AM

208
#16 - Richard Wood / @richardbwood

01/10/2011 at 05:22PM

208
#17 - Andrew Dorman / @andydorman

02/17/2011 at 08:09PM

209
#18 -  Ikhsan Maulana / @ixandidu

01/14/2011 at 04:19PM

212
#19 - Pete Johns / @johnsyweb

01/09/2011 at 09:47PM

212
#20 - Francisco Dibar / @frandibar

01/10/2011 at 02:33AM

213
#21 - Dan Dorman / @dandorman

01/18/2011 at 07:52PM

216
#22 - Dave / @zzdave13

07/23/2011 at 02:07PM

218
#23 - Renat Aksitov / @Korvin79

01/29/2012 at 02:04PM

219
#24 - You-Siang Lin / @yslinnctu

12/15/2011 at 05:32AM

220
#25 - William Dunand / @wdunand

11/09/2011 at 03:08AM

222
#26 - Steven Occhipinti / @steveocchipinti

02/03/2011 at 02:59AM

222
#27 - longB / @longB77353628

04/08/2019 at 09:33AM

225
#28 - James / @Dronak

09/27/2014 at 05:34PM

227
#29 - Hugo O Rivera / @roguh

12/29/2023 at 07:00AM

228
#30 - mightyfoo / @mightyfoo

05/26/2011 at 03:52AM