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 323 remaining solutions by signing in and submitting your own entry
#324 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

324 active golfers, 1034 entries

Leaderboard (lowest score wins):
28
#301 - tdirrenb / @tdirrenb

05/16/2011 at 03:17AM

28
#302 - sathish316 / @sathish316

11/18/2012 at 05:37PM

28
#303 - João Paiva / @jgpaiva

01/31/2014 at 12:45PM

29
#304 - Chris Parsons / @chrismdp

12/29/2010 at 11:02PM

29
#305 - sorami / @boredoms

04/30/2011 at 10:24PM

29
#306 - くま ก็็็็็็็็็็็็็ʕ•͡ᴥ•ʔ ก้้้้้้้้้้้ 55 / @kumack55

04/03/2013 at 12:27PM

29
#307 - Ryan van Rensburg / @rdvr001

07/28/2016 at 06:20PM

30
#308 - Jan B. / @bracki

12/29/2010 at 12:38PM

31
#309 - Joe McCall / @joem86

12/29/2010 at 08:32AM

31
#310 - solsTiCe d'Hiver / @solstice_dhiver

12/30/2010 at 06:57PM

31
#311 - Kudryavtsev Alexandr / @kudryav_a

12/16/2012 at 07:18PM

31
#312 - fuku1026 / @fukusuke1026

07/13/2017 at 02:15PM

33
#313 - Will Furnass / @WillFurnass

05/08/2012 at 09:52PM

34
#314 - crainist / @crainist

12/30/2010 at 09:06PM

39
#315 - Vimfiz / @vimfiz

05/29/2019 at 09:02PM

40
#316 - Nacho Barrientos / @nachobarrientos

12/29/2010 at 01:34PM

44
#317 - DJ Adams / @qmacro

12/29/2010 at 05:43PM

46
#318 - JimmyGymglish / @JGymglish

01/15/2020 at 03:24PM

55
#319 - Jordan Lewis / @JordanALewis

12/28/2010 at 11:18PM

69
#320 - Heath Ritchie / @heathritchie

11/13/2012 at 03:16PM

70
#321 - Jurica / @Jurica34581259

11/19/2018 at 08:51PM

88
#322 - Tom Morris / @tommorris

12/30/2010 at 08:16AM

95
#323 - drio / @drio

12/29/2010 at 11:05PM

164
#324 - Chirag Tailor / @ctailor2

01/27/2014 at 02:14AM