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):
21
#121 - Paul King / @nrocy

12/29/2010 at 07:02PM

21
#122 - kana / @kana1

12/29/2010 at 07:30PM

21
#123 - Austin Taylor / @austintaylor

12/29/2010 at 09:46PM

21
#124 - Birgir Haraldsson / @bix0r

12/30/2010 at 09:24AM

21
#125 -  Ikhsan Maulana / @ixandidu

12/30/2010 at 10:04AM

21
#126 - Ben Lenarts / @benlenarts

12/30/2010 at 10:40AM

21
#127 - Brad / @bjjwillis

12/30/2010 at 11:16AM

21
#128 - Will Hardy / @whrde

12/30/2010 at 12:36PM

21
#129 - milkypostman / @milkypostman

12/30/2010 at 04:20PM

21
#130 - Ricardo Mendes / @locks

12/30/2010 at 08:10PM

21
#131 - Steve Morrow / @yawmark

12/30/2010 at 09:05PM

21
#132 - Pierre / @Pihour

12/31/2010 at 10:53PM

21
#133 - Fer Enaf / @0x00C0FFEE

01/05/2011 at 11:04AM

21
#134 - Matt Tarbit / @mtarbit

01/09/2011 at 12:59AM

21
#135 - Toto l'haricot / @nico_le_terribl

01/09/2011 at 01:24PM

21
#136 - h_east (トロッコ6個) / @h_east

01/11/2011 at 04:04PM

21
#137 - Pete Johns / @johnsyweb

01/15/2011 at 02:51AM

21
#138 - Ben Griffiths / @beng

01/15/2011 at 08:41PM

21
#139 - Rob Ciaccio / @RobertoCalavera

01/21/2011 at 11:20AM

21
#140 - Thomas Schönwälder / @Masei1988

01/22/2011 at 10:33PM

21
#141 - Arthur Chiu / @arthur_chiu

02/06/2011 at 03:23AM

21
#142 - Moltar / @askmoltar

02/07/2011 at 12:59PM

21
#143 - Ruy Diaz / @diazruy

03/15/2011 at 04:03PM

21
#144 - Terje Larsen / @terlars

05/09/2011 at 02:19PM

21
#145 - Justin Love / @wondible

06/10/2011 at 12:17AM

21
#146 - drooooooooooo / @droooooooooooo

08/08/2011 at 02:34AM

21
#147 - Brian Cooke / @bricooke

08/31/2011 at 01:23PM

21
#148 - nicolas bo / @thevegeta

11/09/2011 at 12:42PM

21
#149 - Ivo Dancet / @caifara

12/03/2011 at 05:05PM

21
#150 - Rambominator / @Rambominator

12/13/2011 at 08:27AM