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 43 remaining solutions by signing in and submitting your own entry
#44 無ん垢の叫び / @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

44 active golfers, 92 entries

Leaderboard (lowest score wins):
230
#31 - Bryan Kam / @bryankam

01/11/2011 at 08:28PM

231
#32 - Cameron Jordan / @cameronism

01/11/2011 at 06:48PM

234
#33 - dw jdder / @dwjdder

01/11/2011 at 04:13PM

234
#34 - Mark Smith-Guerrero / @msmithgu

01/11/2011 at 05:15PM

239
#35 - Eivind Jahren / @HaskellElephant

02/02/2011 at 02:58PM

239
#36 - thasso / @thasso23

11/02/2013 at 12:37PM

242
#37 - yaon / @yaon4

09/10/2013 at 01:29PM

244
#38 - Karel Vervaeke / @karel1980

01/11/2011 at 02:56PM

247
#39 - Christopher Brew / @Seph1rothVII

01/11/2012 at 10:46PM

257
#40 - RobertT / @techrt2050

10/11/2013 at 12:35AM

259
#41 - RockerZZY / @rocker_zzy

09/02/2020 at 03:33PM

270
#42 - Greg Belote / @gbelote

08/04/2012 at 02:02PM

275
#43 - Oliver Christ / @0liverChrist

10/18/2013 at 09:52PM

1754
#44 - 無ん垢の叫び / @john_ababa

02/26/2012 at 11:54AM