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 26 remaining solutions by signing in and submitting your own entry
#27 dw jdder / @dwjdder - Score: 234 - 01/11/11 @ 08:13
:%s:s :_ <CR>ean<Down>_<Esc>4-cwgoose_<Esc>:%s:\(.*\)_\(.*\):)_)And on that farm he had a \1')With a\2,\2 h( and a\2,\2 th(.)H( a\2, th( a\2, everywh( a\2,\2.)_<CR>:%s:_:Old MacDonald had a farm':g|%s:):\r:g|%s:(:ere:g|%s:,n:,:g|%s:':, E I E I O.:|1d|x<CR>
0 comments
#28 Mark Smith-Guerrero / @msmithgu - Score: 234 - 01/11/11 @ 09:15
3jlrol.:%s/s / /<CR>ggqqceOld MacDonald had a farm, E I E I O.<CR>And on that farm he had a <C-R>", E I E I O.<CR>With a <Esc>lyeA, <C-R>" here and a <C-R>", <C-R>" there.<CR>Here a <C-R>", there a <C-R>", everywhere a <C-R>", <C-R>".<CR><Esc>jq7@q:%s/a o/an o/g<CR>3kyy:%s/\n\n/\r<C-R>"\r/<CR>dk<CR>ZZ
0 comments
#29 Eivind Jahren / @HaskellElephant - Score: 239 - 02/02/11 @ 06:58
3jlcwooses<Esc>Geas<Esc>:%s/\v(\w+)s (\w+)/And on that farm he had a \1, E I E I O.\rWith a \2, \2 here and a \2, \2 there.\rHere a \2, there a \2, everywhere a \2, \2.\r/g<CR><CR>ggOOld MacDonald had a farm, E I E I O.<Esc>ddqqP4jPjjq7@qdd:%s/a o/an o/g<CR>ZZ
0 comments
#30 Karel Vervaeke / @karel1980 - Score: 244 - 01/11/11 @ 06:56
qaIOld MacDonald had a farm<Esc>qqba, E I E I O.<CR><Esc>qqcexbdwiAnd on that farm he had a <C-R>"<BS><Esc>@bdwqqdIWith a <C-R>", <C-R>" here and a <C-R>", <C-R>" there.<CR>Here a <C-R>", there a <C-R>", everywhere a <C-R>", <C-R>".<CR><Esc>@a@bjqqe@a@b@c@dq6@edd:%s/gees/goose<CR>:%s/a o/an o/g<CR>:%s/hee/heep<CR>ZZ
0 comments
#31 Christopher Brew / @Seph1rothVII - Score: 247 - 01/11/12 @ 14:46
qqOOld MacDonald had a farm, E I E I O.<Esc>YjpkiAnd on that farm he had a <Esc>ea, E I E I O.<CR><Esc>ywiWith a <Esc>ea, <Esc>p2By2WA here and a <Esc>pa there.<CR>Here a <Esc>pbithere a <Esc>ea, everywhere a <Esc>pa.<Down><CR><Esc>jq7@qdd7k:s/a /an /g<CR>k:s/a /an /g<CR>k8ex6kex6khhx6khroh.6kex6klx6khhxZZ
0 comments
#32 Greg Belote / @gbelote - Score: 270 - 08/04/12 @ 07:02
qave"bywVVve"cySOld MacDonald had a farm, E I E I O.<CR>And on that farm he had a <C-R>b, E I E I O.<CR>With a <C-R>c, <C-R>c here and a <C-R>c, <C-R>c there.<CR>Here a <C-R>c, there a <C-R>c, everywhere a <C-R>c, <C-R>c.<CR>Old <C-X><C-L><CR><Esc>jq7@add6kV2k:s/o a/<BS><BS><BS><BS>a o/an o/g<CR>kk8ex6kex6khhx6khcc<Esc>u6lwwwwwwlRoo<Esc>6kex6klx6khhx:wq<CR>
0 comments
#33 無ん垢の叫び / @john_ababa - Score: 1754 - 02/26/12 @ 03: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
VimGolf