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 5521ef575709ea270a00ce69

Remove hard line breaks

Text files with Hard breaks are not good for e-readers. We need remove all hard line breaks and have long lines.

Start file
[ chapter 1 ] - we are
introduced to the narrator, a
pilot, and his ideas about
grown-ups

Once when i was six years old
i saw a magnificent picture in
a book, called true stories
from nature, about the
primeval forest. It was a
picture of a boa constrictor
in the act of swallowing an
animal. Here is a copy of the
drawing.

In the book it said: "boa
constrictors swallow their
prey whole, without chewing
it. After that they are not
able to move, and they sleep
through the six months that
they need for digestion."

I pondered deeply, then, over
the adventures of the jungle.
And after some work with a
colored pencil i succeeded in
making my first drawing. My
drawing number one. It looked
like this:

I showed my masterpiece to the
grown-ups, and asked them
whether the drawing frightened
them.

But they answered: "frighten?
Why should any one be
frightened by a hat?"

My drawing was not a picture
of a hat. It was a picture of
a boa constrictor digesting an
elephant. But since the
grown-ups were not able to
understand it, i made another
drawing: i drew the inside of
the boa constrictor, so that
the grown-ups could see it
clearly. They always need to
have things explained. My
drawing number two looked like
this:

The grown-ups response, this
time, was to advise me to lay
aside my drawings of boa
constrictors, whether from the
inside or the outside, and
devote myself instead to
geography, history, arithmetic
and grammar. That is why, at
the age of six, i gave up what
might have been a magnificent
career as a painter. I had
been disheartened by the
failure of my drawing number
one and my drawing number two.
Grown-ups never understand
anything by themselves, and it
is tiresome for children to be
always and forever explaining
things to them.

So then i chose another
profession, and learned to
pilot airplanes. I have flown
a little over all parts of the
world; and it is true that
geography has been very useful
to me. At a glance i can
distinguish china from
arizona. If one gets lost in
the night, such knowledge is
valuable.

In the course of this life i
have had a great many
encounters with a great many
people who have been concerned
with matters of consequence. I
have lived a great deal among
grown-ups. I have seen them
intimately, close at hand. And
that hasnt much improved my
opinion of them.

Whenever i met one of them who
seemed to me at all
clear-sighted, i tried the
experiment of showing him my
drawing number one, which i
have always kept. I would try
to find out, so, if this was a
person of true understanding.
But, whoever it was, he, or
she, would always say:

"that is a hat."

Then i would never talk to
that person about boa
constrictors, or primeval
forests, or stars. I would
bring myself down to his
level. I would talk to him
about bridge, and golf, and
politics, and neckties. And
the grown-up would be greatly
pleased to have met such a
sensible man.
End file
[ chapter 1 ] - we are introduced to the narrator, a pilot, and his ideas about grown-ups
Once when i was six years old i saw a magnificent picture in a book, called true stories from nature, about the primeval forest. It was a picture of a boa constrictor in the act of swallowing an animal. Here is a copy of the drawing.
In the book it said: "boa constrictors swallow their prey whole, without chewing it. After that they are not able to move, and they sleep through the six months that they need for digestion."
I pondered deeply, then, over the adventures of the jungle.  And after some work with a colored pencil i succeeded in making my first drawing. My drawing number one. It looked like this:
I showed my masterpiece to the grown-ups, and asked them whether the drawing frightened them.
But they answered: "frighten?  Why should any one be frightened by a hat?"
My drawing was not a picture of a hat. It was a picture of a boa constrictor digesting an elephant. But since the grown-ups were not able to understand it, i made another drawing: i drew the inside of the boa constrictor, so that the grown-ups could see it clearly. They always need to have things explained. My drawing number two looked like this:
The grown-ups response, this time, was to advise me to lay aside my drawings of boa constrictors, whether from the inside or the outside, and devote myself instead to geography, history, arithmetic and grammar. That is why, at the age of six, i gave up what might have been a magnificent career as a painter. I had been disheartened by the failure of my drawing number one and my drawing number two.  Grown-ups never understand anything by themselves, and it is tiresome for children to be always and forever explaining things to them.
So then i chose another profession, and learned to pilot airplanes. I have flown a little over all parts of the world; and it is true that geography has been very useful to me. At a glance i can distinguish china from arizona. If one gets lost in the night, such knowledge is valuable.
In the course of this life i have had a great many encounters with a great many people who have been concerned with matters of consequence. I have lived a great deal among grown-ups. I have seen them intimately, close at hand. And that hasnt much improved my opinion of them.
Whenever i met one of them who seemed to me at all clear-sighted, i tried the experiment of showing him my drawing number one, which i have always kept. I would try to find out, so, if this was a person of true understanding.  But, whoever it was, he, or she, would always say:
"that is a hat."
Then i would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level. I would talk to him about bridge, and golf, and politics, and neckties. And the grown-up would be greatly pleased to have met such a sensible man.

View Diff

1,108c1,11
< [ chapter 1 ] - we are
< introduced to the narrator, a
< pilot, and his ideas about
< grown-ups
< 
< Once when i was six years old
< i saw a magnificent picture in
< a book, called true stories
< from nature, about the
< primeval forest. It was a
< picture of a boa constrictor
< in the act of swallowing an
< animal. Here is a copy of the
< drawing.
< 
< In the book it said: "boa
< constrictors swallow their
< prey whole, without chewing
< it. After that they are not
< able to move, and they sleep
< through the six months that
< they need for digestion."
< 
< I pondered deeply, then, over
< the adventures of the jungle.
< And after some work with a
< colored pencil i succeeded in
< making my first drawing. My
< drawing number one. It looked
< like this:
< 
< I showed my masterpiece to the
< grown-ups, and asked them
< whether the drawing frightened
< them.
< 
< But they answered: "frighten?
< Why should any one be
< frightened by a hat?"
< 
< My drawing was not a picture
< of a hat. It was a picture of
< a boa constrictor digesting an
< elephant. But since the
< grown-ups were not able to
< understand it, i made another
< drawing: i drew the inside of
< the boa constrictor, so that
< the grown-ups could see it
< clearly. They always need to
< have things explained. My
< drawing number two looked like
< this:
< 
< The grown-ups response, this
< time, was to advise me to lay
< aside my drawings of boa
< constrictors, whether from the
< inside or the outside, and
< devote myself instead to
< geography, history, arithmetic
< and grammar. That is why, at
< the age of six, i gave up what
< might have been a magnificent
< career as a painter. I had
< been disheartened by the
< failure of my drawing number
< one and my drawing number two.
< Grown-ups never understand
< anything by themselves, and it
< is tiresome for children to be
< always and forever explaining
< things to them.
< 
< So then i chose another
< profession, and learned to
< pilot airplanes. I have flown
< a little over all parts of the
< world; and it is true that
< geography has been very useful
< to me. At a glance i can
< distinguish china from
< arizona. If one gets lost in
< the night, such knowledge is
< valuable.
< 
< In the course of this life i
< have had a great many
< encounters with a great many
< people who have been concerned
< with matters of consequence. I
< have lived a great deal among
< grown-ups. I have seen them
< intimately, close at hand. And
< that hasnt much improved my
< opinion of them.
< 
< Whenever i met one of them who
< seemed to me at all
< clear-sighted, i tried the
< experiment of showing him my
< drawing number one, which i
< have always kept. I would try
< to find out, so, if this was a
< person of true understanding.
< But, whoever it was, he, or
< she, would always say:
< 
---
> [ chapter 1 ] - we are introduced to the narrator, a pilot, and his ideas about grown-ups
> Once when i was six years old i saw a magnificent picture in a book, called true stories from nature, about the primeval forest. It was a picture of a boa constrictor in the act of swallowing an animal. Here is a copy of the drawing.
> In the book it said: "boa constrictors swallow their prey whole, without chewing it. After that they are not able to move, and they sleep through the six months that they need for digestion."
> I pondered deeply, then, over the adventures of the jungle.  And after some work with a colored pencil i succeeded in making my first drawing. My drawing number one. It looked like this:
> I showed my masterpiece to the grown-ups, and asked them whether the drawing frightened them.
> But they answered: "frighten?  Why should any one be frightened by a hat?"
> My drawing was not a picture of a hat. It was a picture of a boa constrictor digesting an elephant. But since the grown-ups were not able to understand it, i made another drawing: i drew the inside of the boa constrictor, so that the grown-ups could see it clearly. They always need to have things explained. My drawing number two looked like this:
> The grown-ups response, this time, was to advise me to lay aside my drawings of boa constrictors, whether from the inside or the outside, and devote myself instead to geography, history, arithmetic and grammar. That is why, at the age of six, i gave up what might have been a magnificent career as a painter. I had been disheartened by the failure of my drawing number one and my drawing number two.  Grown-ups never understand anything by themselves, and it is tiresome for children to be always and forever explaining things to them.
> So then i chose another profession, and learned to pilot airplanes. I have flown a little over all parts of the world; and it is true that geography has been very useful to me. At a glance i can distinguish china from arizona. If one gets lost in the night, such knowledge is valuable.
> In the course of this life i have had a great many encounters with a great many people who have been concerned with matters of consequence. I have lived a great deal among grown-ups. I have seen them intimately, close at hand. And that hasnt much improved my opinion of them.
> Whenever i met one of them who seemed to me at all clear-sighted, i tried the experiment of showing him my drawing number one, which i have always kept. I would try to find out, so, if this was a person of true understanding.  But, whoever it was, he, or she, would always say:
110,121c13
< 
< Then i would never talk to
< that person about boa
< constrictors, or primeval
< forests, or stars. I would
< bring myself down to his
< level. I would talk to him
< about bridge, and golf, and
< politics, and neckties. And
< the grown-up would be greatly
< pleased to have met such a
< sensible man.
---
> Then i would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level. I would talk to him about bridge, and golf, and politics, and neckties. And the grown-up would be greatly pleased to have met such a sensible man.

Solutions by @rax0m:

Unlock 3 remaining solutions by signing in and submitting your own entry
Created by: @pftb12345

34 active golfers, 74 entries

Solutions by @rax0m:
10
#6 - Oskar Fridell / @rax0m

10/09/2017 at 12:14PM

14
#>20 - Oskar Fridell / @rax0m

10/09/2017 at 12:13PM

19
#>27 - Oskar Fridell / @rax0m

10/09/2017 at 12:11PM