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

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 23 remaining solutions by signing in and submitting your own entry
#24 Tact Overflow / @muppling - Score: 67 - 04/08/15 @ 12:36
<C-V>G~3Jx:%s/\(["!.] .\)/\U\1/g<CR>:%s/\(".\)/\U\1/g<CR>4Jxkdd3kdd8Gdd4GddZZ

0 comments


Created by: @pftb12345

24 active golfers, 82 entries

Leaderboard (lowest score wins):
21
#1 - Urtica dioica / @udioica

04/08/2015 at 02:23PM

21
#2 - John Braxler / @braxler

04/10/2015 at 12:54PM

21
#3 - Janzen / @__Coos

09/29/2022 at 01:27PM

21
#4 - Berel94 / @Berel94

03/19/2024 at 09:46PM

21
#5 - Peppa Pig / @PeppaPigSg

05/28/2024 at 02:05AM

22
#6 - Petro Тrouq / @zulolosi

04/09/2015 at 01:18AM

22
#7 - Oleg Parashchenko / @olparko

04/09/2015 at 09:54AM

23
#8 - Matt / @mcr05

04/08/2015 at 07:40PM

23
#9 - Ala' Ibrahim / @alaa_ibrahim

04/11/2015 at 01:07AM

23
#10 - Groovy / @groovy9

03/09/2019 at 03:58PM

23
#11 - mevmev / @mevmev8

10/13/2021 at 01:21PM

24
#12 - pftb12345 / @pftb12345

04/08/2015 at 02:48PM

31
#13 - E Both / @enboth

04/08/2015 at 01:23PM

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

08/31/2020 at 01:27PM

33
#15 - Jakob Weickmann / @jweickm

02/16/2022 at 07:24PM

35
#16 - Michael Herring / @mayoroftuesday

12/22/2021 at 07:31PM

42
#17 - loupiot.veloce / @LoupiotVeloce

06/12/2020 at 10:51AM

43
#18 - Ben Hill / @KaizenSoze70

07/05/2017 at 06:17PM

44
#19 - kungfuchad / @kungfuchad

04/08/2015 at 12:40PM

47
#20 - Elizabeth / @sprinkles418

04/09/2015 at 02:35PM

50
#21 - Olivier Bégassat / @zk_evm

06/15/2023 at 09:39AM

51
#22 - vgmct / @vgmct

04/25/2015 at 10:01PM

54
#23 - Eric Potter / @pottereric

04/09/2015 at 03:12AM

67
#24 - Tact Overflow / @muppling

04/08/2015 at 12:36PM