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):
25
#271 - Felipe Jaramillo F / @mrfelipe

04/03/2014 at 12:24AM

25
#272 - Patrick Pitoscia / @Patrick03960431

08/10/2014 at 02:02AM

25
#273 - Tj / @yrddy

08/19/2014 at 06:15AM

25
#274 - Justin Knag / @justinknag

09/16/2014 at 06:34AM

25
#275 - Herr Oppermann / @HerrOppermann

09/18/2014 at 01:45PM

25
#276 - aisapatino / @aisapatino

09/30/2015 at 10:34PM

25
#277 - Gerald Tilma / @GeraldTilma

10/21/2015 at 02:15AM

25
#278 - Nicolas Nistal / @niconistal

11/19/2015 at 04:56AM

25
#279 - Jonas Sunde V / @sunde_v

08/04/2017 at 06:58PM

26
#280 - Paul Paradise / @natacado

12/29/2010 at 05:25PM

26
#281 - Sam Saffron / @samsaffron

12/30/2010 at 07:43AM

26
#282 - Jordi Romero / @jordiromero

01/07/2011 at 09:19PM

26
#283 - conor / @omgconor

01/22/2011 at 05:34AM

26
#284 - TchiKong / @tchikong

02/03/2011 at 11:04AM

26
#285 - Steven Noonan / @neunon

02/12/2011 at 05:41AM

26
#286 - Eivind Jahren / @HaskellElephant

03/27/2011 at 03:07PM

26
#287 - Rolf K. / @mindleftbody

06/17/2011 at 12:41PM

26
#288 - Stefan Schmidt / @stafue

12/06/2013 at 02:34PM

26
#289 - wilddog64 / @chengkai318

12/17/2013 at 09:37PM

26
#290 - luffy / @raxcoi

06/12/2015 at 04:08AM

26
#291 - George Angelopoulos / @g_usermod

08/04/2016 at 11:45PM

26
#292 - Gurukandhamoorthi / @Gurukandhamoor1

07/14/2017 at 04:29PM

27
#293 - Ankit Shankar / @thelastnode

12/30/2010 at 09:44AM

27
#294 - Yannick LM / @yanicklm

12/30/2010 at 04:22PM

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

12/12/2012 at 01:41PM

27
#296 - Jonas Engman / @jodas

02/18/2013 at 09:21PM

27
#297 - faisal / @faisalhackshah

11/26/2018 at 07:23PM

28
#298 - Ben C / @cben

12/29/2010 at 06:24AM

28
#299 - jonlorusso / @jonlorusso

12/30/2010 at 01:46AM

28
#300 - Tien Le / @tienlex

01/04/2011 at 12:50AM