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 @GavinKoeng:

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

25 active golfers, 97 entries

Solutions by @GavinKoeng:
21
#6 - Gavin / @GavinKoeng

04/10/2026 at 01:52AM

22
#>8 - Gavin / @GavinKoeng

04/10/2026 at 01:51AM

23
#>12 - Gavin / @GavinKoeng

04/10/2026 at 01:51AM

24
#>13 - Gavin / @GavinKoeng

04/10/2026 at 01:48AM

31
#>15 - Gavin / @GavinKoeng

04/10/2026 at 01:45AM

33
#>16 - Gavin / @GavinKoeng

04/10/2026 at 01:44AM

34
#>16 - Gavin / @GavinKoeng

04/10/2026 at 01:42AM

42
#>18 - Gavin / @GavinKoeng

04/10/2026 at 01:39AM

43
#>19 - Gavin / @GavinKoeng

04/10/2026 at 01:36AM

44
#>20 - Gavin / @GavinKoeng

04/10/2026 at 01:33AM

47
#>21 - Gavin / @GavinKoeng

04/10/2026 at 01:33AM

48
#>21 - Gavin / @GavinKoeng

04/10/2026 at 01:30AM

51
#>23 - Gavin / @GavinKoeng

04/10/2026 at 01:29AM

52
#>23 - Gavin / @GavinKoeng

04/10/2026 at 01:26AM

58
#>24 - Gavin / @GavinKoeng

04/10/2026 at 01:24AM