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 50bda7a73645b3000200004b

lamb had a little Mary

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

Start file
lamb had a little Mary,
Whose fleece was white as snow.
And everywhere that lamb went,
The Mary was sure to go.

It followed her to school one day,
Which was against the rule.
It made the children laugh and play,
To see a Mary at school.

And so the teacher turned it out,
But still it lingered near,
And waited patiently about,
Till lamb did appear.

"Why does the Mary love lamb so?"
The eager children cry.
"Why, lamb loves the Mary, you know."
The teacher did reply.
End file
Mary had a little lamb,
Whose fleece was white as snow.
And everywhere that Mary went,
The lamb was sure to go.

It followed her to school one day,
Which was against the rule.
It made the children laugh and play,
To see a lamb at school.

And so the teacher turned it out,
But still it lingered near,
And waited patiently about,
Till Mary did appear.

"Why does the lamb love Mary so?"
The eager children cry.
"Why, Mary loves the lamb, you know."
The teacher did reply.

View Diff

1c1
< lamb had a little Mary,
---
> Mary had a little lamb,
3,4c3,4
< And everywhere that lamb went,
< The Mary was sure to go.
---
> And everywhere that Mary went,
> The lamb was sure to go.
9c9
< To see a Mary at school.
---
> To see a lamb at school.
14c14
< Till lamb did appear.
---
> Till Mary did appear.
16c16
< "Why does the Mary love lamb so?"
---
> "Why does the lamb love Mary so?"
18c18
< "Why, lamb loves the Mary, you know."
---
> "Why, Mary loves the lamb, you know."

Solutions by @rocker_zzy:

Unlock 13 remaining solutions by signing in and submitting your own entry
Created by: @udioica

163 active golfers, 586 entries

Solutions by @rocker_zzy:
16
#22 - RockerZZY / @rocker_zzy

06/24/2020 at 06:44AM

25
#>49 - RockerZZY / @rocker_zzy

06/24/2020 at 06:43AM

29
#>50 - RockerZZY / @rocker_zzy

06/24/2020 at 06:37AM

30
#>50 - RockerZZY / @rocker_zzy

06/24/2020 at 06:35AM

32
#>66 - RockerZZY / @rocker_zzy

06/24/2020 at 06:28AM

33
#>67 - RockerZZY / @rocker_zzy

06/24/2020 at 06:25AM

34
#>80 - RockerZZY / @rocker_zzy

06/24/2020 at 06:16AM

35
#>88 - RockerZZY / @rocker_zzy

06/24/2020 at 06:05AM

36
#>100 - RockerZZY / @rocker_zzy

06/24/2020 at 06:04AM

39
#>130 - RockerZZY / @rocker_zzy

06/24/2020 at 06:00AM

42
#>140 - RockerZZY / @rocker_zzy

06/24/2020 at 05:54AM

44
#>151 - RockerZZY / @rocker_zzy

06/24/2020 at 05:53AM

59
#>159 - RockerZZY / @rocker_zzy

06/24/2020 at 05:50AM