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):
26
#301 - conor / @omgconor

01/22/2011 at 05:34AM

26
#302 - TchiKong / @tchikong

02/03/2011 at 11:04AM

26
#303 - Steven Noonan / @neunon

02/12/2011 at 05:41AM

26
#304 - Eivind Jahren / @HaskellElephant

03/27/2011 at 03:07PM

26
#305 - Rolf K. / @mindleftbody

06/17/2011 at 12:41PM

26
#306 - Stefan Schmidt / @stafue

12/06/2013 at 02:34PM

26
#307 - wilddog64 / @chengkai318

12/17/2013 at 09:37PM

26
#308 - luffy / @raxcoi

06/12/2015 at 04:08AM

26
#309 - George Angelopoulos / @g_usermod

08/04/2016 at 11:45PM

26
#310 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 04:29PM

26
#311 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 08:28PM

26
#312 - seenz / @lefton_sean

05/15/2022 at 02:45AM

27
#313 - Ankit Shankar / @thelastnode

12/30/2010 at 09:44AM

27
#314 - Yannick LM / @yanicklm

12/30/2010 at 04:22PM

27
#315 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

12/12/2012 at 01:41PM

27
#316 - Jonas Engman / @jodas

02/18/2013 at 09:21PM

27
#317 - faisal / @faisalhackshah

11/26/2018 at 07:23PM

28
#318 - Ben C / @cben

12/29/2010 at 06:24AM

28
#319 - jonlorusso / @jonlorusso

12/30/2010 at 01:46AM

28
#320 - Tien Le / @tienlex

01/04/2011 at 12:50AM

28
#321 - tdirrenb / @tdirrenb

05/16/2011 at 03:17AM

28
#322 - sathish316 / @sathish316

11/18/2012 at 05:37PM

28
#323 - João Paiva / @jgpaiva

01/31/2014 at 12:45PM

29
#324 - Chris Parsons / @chrismdp

12/29/2010 at 11:02PM

29
#325 - sorami / @boredoms

04/30/2011 at 10:24PM

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

04/03/2013 at 12:27PM

29
#327 - Ryan van Rensburg / @rdvr001

07/28/2016 at 06:20PM

30
#328 - Jan B. / @bracki

12/29/2010 at 12:38PM

31
#329 - Joe McCall / @joem86

12/29/2010 at 08:32AM

31
#330 - solsTiCe d'Hiver / @solstice_dhiver

12/30/2010 at 06:57PM