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):
23
#241 - うえっち / @uh_tomo

12/04/2012 at 04:57PM

23
#242 - Tresifina / @Tresifina

05/23/2013 at 05:07AM

23
#243 - pikaren / @REALpikaren

01/07/2014 at 04:04AM

23
#244 - eBrnd / @eBrnd

11/03/2014 at 09:49PM

23
#245 - Pete Sevander / @Sevanteri

11/13/2015 at 01:56PM

24
#246 - Akira Matsuda / @a_matsuda

12/30/2010 at 01:40PM

24
#247 - Cristi Balan / @evilchelu

01/01/2011 at 06:54AM

24
#248 - Stuart Gale / @bishboria

01/02/2011 at 08:23PM

24
#249 - aimee / @sermoa

01/03/2011 at 12:54PM

24
#250 - Wesley Wong / @wesleymwwong

01/29/2011 at 08:59AM

24
#251 - Mike Marion / @mikejmarion

03/22/2011 at 06:49AM

24
#252 - Craig H. Anderson / @CootCraig

04/18/2011 at 04:17PM

24
#253 - icdark / @icdark

05/29/2011 at 11:29PM

24
#254 - Jim Infield / @jinfield

07/14/2011 at 09:49PM

24
#255 - seanwalberg / @seanwalberg

01/31/2012 at 03:45AM

24
#256 - Nolen Royalty / @NolenRoyalty

04/20/2012 at 07:55PM

24
#257 - Dan Oneata / @DanOneata

08/06/2012 at 11:26PM

24
#258 - Sven Koesling / @McSvenster

09/24/2012 at 09:08AM

24
#259 - isayoldchap / @isayoldchap

09/07/2013 at 04:49PM

24
#260 - brett / @brettyukich

09/21/2013 at 10:08PM

24
#261 - gary.klindt@googlema / @garstekli

12/01/2013 at 07:51PM

24
#262 - Ram Tamtam / @ramtamtamtam

06/30/2014 at 11:14AM

24
#263 - Ben Vandervalk / @benvvalk

09/22/2015 at 04:52AM

24
#264 - Matt Rasmus / @_mattrasmus

10/11/2016 at 03:13PM

24
#265 - july9793 / @july9793_

01/07/2022 at 12:47AM

25
#266 - uuu / @uu59

12/30/2010 at 12:15AM

25
#267 - Thedward the Edward / @thedward

01/01/2011 at 04:23AM

25
#268 - ☣Rob Mason☠ / @necr0mancer

01/18/2011 at 05:32PM

25
#269 - Solomon White / @rubysolo

02/08/2011 at 05:15PM

25
#270 - Teflon Ted t(◕‿◕t) / @teflonted

05/30/2011 at 11:57AM