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 55250aff5eba2c043f0318f5

Merge blank lines and properly capitalize

Here you need complete 2 tasks: 1. Remove all unwanted continuous blank lines and leave only 1 blank line between paragraphs. 2. Properly capitalize the sentences.

Start file
the little prince visits the geographer



the sixth planet was ten times larger than the last one. it was inhabited by an old gentleman who wrote voluminous books.


"oh, look! here is an explorer!" he exclaimed to himself when he saw the little prince coming.


the little prince sat down on the table and panted a little. he had already traveled so much and so far!


"where do you come from?" the old gentleman said to him.


"what is that big book?" said the little prince. "what are you doing?"



End file
The little prince visits the geographer

The sixth planet was ten times larger than the last one. It was inhabited by an old gentleman who wrote voluminous books.

"Oh, look! Here is an explorer!" He exclaimed to himself when he saw the little prince coming.

The little prince sat down on the table and panted a little. He had already traveled so much and so far!

"Where do you come from?" The old gentleman said to him.

"What is that big book?" Said the little prince. "What are you doing?"

View Diff

1c1
< the little prince visits the geographer
---
> The little prince visits the geographer
2a3
> The sixth planet was ten times larger than the last one. It was inhabited by an old gentleman who wrote voluminous books.
3a5
> "Oh, look! Here is an explorer!" He exclaimed to himself when he saw the little prince coming.
5,18c7
< the sixth planet was ten times larger than the last one. it was inhabited by an old gentleman who wrote voluminous books.
< 
< 
< "oh, look! here is an explorer!" he exclaimed to himself when he saw the little prince coming.
< 
< 
< the little prince sat down on the table and panted a little. he had already traveled so much and so far!
< 
< 
< "where do you come from?" the old gentleman said to him.
< 
< 
< "what is that big book?" said the little prince. "what are you doing?"
< 
---
> The little prince sat down on the table and panted a little. He had already traveled so much and so far!
19a9
> "Where do you come from?" The old gentleman said to him.
20a11
> "What is that big book?" Said the little prince. "What are you doing?"

Solutions by @foobar01123:

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

24 active golfers, 82 entries

Solutions by @foobar01123:
31
#14 - Miłosz Łakomy / @foobar01123

08/31/2020 at 01:27PM

42
#>17 - Miłosz Łakomy / @foobar01123

08/27/2020 at 02:13PM

43
#>18 - Miłosz Łakomy / @foobar01123

08/21/2020 at 09:02AM

47
#>20 - Miłosz Łakomy / @foobar01123

08/20/2020 at 01:11PM

48
#>20 - Miłosz Łakomy / @foobar01123

08/19/2020 at 05:24AM

52
#>22 - Miłosz Łakomy / @foobar01123

08/14/2020 at 08:30AM

56
#>23 - Miłosz Łakomy / @foobar01123

08/13/2020 at 10:04AM