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 4d1a6a8eb8cb34093200007a

Reconstruct the Sentence

Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.

Start file
time you're 7
in the 4
proper order 5
will be 2
by the 5
by the 5
put back 3
Vim! 10
done with 8
put back 3
This sentence 1
it in 9
End file
This sentence will be put back in the proper order by the time you're done with it in Vim!

View Diff

1,12c1
< time you're 7
< in the 4
< proper order 5
< will be 2
< by the 5
< by the 5
< put back 3
< Vim! 10
< done with 8
< put back 3
< This sentence 1
< it in 9
---
> This sentence will be put back in the proper order by the time you're done with it in Vim!

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 345 remaining solutions by signing in and submitting your own entry
#346 Chirag Tailor / @ctailor2 - Score: 164 - 01/27/14 @ 02:14
jjjjjjjjjjdd0ggpuPjjjjddkkkpuPjjjjjjddkkkkkPjjd2dkP<Down><Down><Down>ddkkpkkkjjjjjjkkjddjkkjjddkPjjjddkPjjdd:%s/ \d//g<CR>u:%s/ \d*/<Left>$<Right>/g<CR>dd<Up><Down>A<Esc>u<Up>ou<Esc>uo<Esc>uJ<Up>J<Up>uu<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>JJJJJJJJJ:wq<CR>

0 comments


Created by: @elasticdog

346 active golfers, 1141 entries

Leaderboard (lowest score wins):
31
#331 - Kudryavtsev Alexandr / @kudryav_a

12/16/2012 at 07:18PM

31
#332 - fuku1026 / @fukusuke1026

07/13/2017 at 02:15PM

31
#333 - joao neto / @joaonet49907796

05/17/2021 at 01:39PM

33
#334 - Will Furnass / @WillFurnass

05/08/2012 at 09:52PM

34
#335 - crainist / @crainist

12/30/2010 at 09:06PM

39
#336 - Vimfiz / @vimfiz

05/29/2019 at 09:02PM

40
#337 - Nacho Barrientos / @nachobarrientos

12/29/2010 at 01:34PM

44
#338 - DJ Adams / @qmacro

12/29/2010 at 05:43PM

46
#339 - JimmyGymglish / @JGymglish

01/15/2020 at 03:24PM

46
#340 - Zach Lapidus / @zach_lapidus

05/25/2021 at 02:41AM

55
#341 - Jordan Lewis / @JordanALewis

12/28/2010 at 11:18PM

69
#342 - Heath Ritchie / @heathritchie

11/13/2012 at 03:16PM

70
#343 - Jurica / @Jurica34581259

11/19/2018 at 08:51PM

88
#344 - Tom Morris / @tommorris

12/30/2010 at 08:16AM

95
#345 - drio / @drio

12/29/2010 at 11:05PM

164
#346 - Chirag Tailor / @ctailor2

01/27/2014 at 02:14AM