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 248 remaining solutions by signing in and submitting your own entry
#249 lucapette / lucapette - Score: 25 - 04/27/12 @ 14:39
:<Up>sor nu|%s/\d*\n//<CR>A<BS><Esc>ZZ

0 comments


#250 ise0615 / ise0615 - Score: 25 - 05/04/12 @ 17:11
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ

0 comments


#251 Chris Brown / engineercyb - Score: 25 - 07/13/12 @ 02:33
:sor un<CR>qq$xx+q9@qx:%j<CR>ZZ

0 comments


#252 Andrey Yankin / YankinAndrey - Score: 25 - 07/20/12 @ 11:17
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ

0 comments


#253 mhb / mhbvim - Score: 25 - 11/26/12 @ 08:37
:sor nu|%norm $F D<CR>vggJZZ

0 comments


#254 Tarcísio Gruppi / txgruppi - Score: 25 - 12/11/12 @ 16:01
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ

0 comments


#255 Bart of Denver / bartofdenver - Score: 25 - 08/12/13 @ 22:32
:sor un<CR>:%s/ \d<CR>1G10J$xZZ

0 comments


#256 James / Dronak - Score: 25 - 08/29/13 @ 22:02
:sor un<CR>10J:s/ \d\+//g<CR>ZZ

0 comments


#257 Hachez Floran / FloranHachez - Score: 25 - 09/04/13 @ 12:28
<CR>:sor un|%s/ \d\+//|%j|x<CR>

0 comments


#258 nona urbiz / nospampleasemam - Score: 25 - 09/28/13 @ 07:32
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ

0 comments


#259 RobertT / techrt2050 - Score: 25 - 10/10/13 @ 22:29
:sor nu<CR>qq$F D+q9@q:%j<CR>ZZ

0 comments


#260 Zach Kemp / zvksf - Score: 25 - 12/20/13 @ 20:22
:sor un<CR>:%s;\d\n;;g<CR>$xxZZ

0 comments


#261 Felipe Jaramillo F / mrfelipe - Score: 25 - 04/03/14 @ 00:24
:sor nu<CR>:%s/\d\n//g<CR>$xxZZ

0 comments


#262 Patrick Pitoscia / Patrick03960431 - Score: 25 - 08/10/14 @ 02:02
:sor nu|%s/ \d\n/ <CR>$xxxZZ

0 comments


#263 Tj / yrddy - Score: 25 - 08/19/14 @ 06:15
:sor nu<CR>qa$x+q9@axxVggJZZ

0 comments


#264 Justin Knag / justinknag - Score: 25 - 09/16/14 @ 06:34
:sor nu<CR>qq$F Djq9@qH10JZZ

0 comments


#265 Herr Oppermann / HerrOppermann - Score: 25 - 09/18/14 @ 13:45
:sor nu<CR>10J:s/ \d//g<CR>$xZZ

0 comments


#266 aisapatino / aisapatino - Score: 25 - 09/30/15 @ 22:34
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ

0 comments


#267 Gerald Tilma / GeraldTilma - Score: 25 - 10/21/15 @ 02:15
:sor un<CR>:%s/\d\n//g<CR>$xxZZ

0 comments


#268 Nicolas Nistal / niconistal - Score: 25 - 11/19/15 @ 04:56
:sor nu<CR>VGJ:s/ \d\+//g<CR>ZZ

0 comments


#269 Jonas Sunde V / sunde_v - Score: 25 - 08/04/17 @ 18:58
:sor nu|%norm $F D<CR>vggJZZ

0 comments


#270 Paul Paradise / natacado - Score: 26 - 12/29/10 @ 17:25
:sor nu<CR>:%s/ \d//<CR>VggJ$xZZ

0 comments


#271 Sam Saffron / samsaffron - Score: 26 - 12/30/10 @ 07:43
:sor un|%s/\d.*\n//g<CR>$d ZZ

0 comments


#272 Jordi Romero / jordiromero - Score: 26 - 01/07/11 @ 21:19
:sor nu<CR>10gJ:s/\d*//g<CR>$xZZ

0 comments


#273 conor / omgconor - Score: 26 - 01/22/11 @ 05:34
:sor nu|%s/\d*\m<BS>n/<CR>$dw<Esc>ZZ

0 comments


#274 TchiKong / tchikong - Score: 26 - 02/03/11 @ 11:04
:%sort nu<CR>:%s/\d\n//<CR>$xxZZ

0 comments


#275 Steven Noonan / neunon - Score: 26 - 02/12/11 @ 05:41
:sor nu<CR>qa/\d$<CR>vF xJq9@aZZ

0 comments


#276 Eivind Jahren / HaskellElephant - Score: 26 - 03/27/11 @ 15:07
:sor nu<CR>:%s/ \d/<CR>gg10J$xZZ

0 comments


#277 Rolf K. / mindleftbody - Score: 26 - 06/17/11 @ 12:41
:sor nu<CR>qq$xxjq9@qxgg10JZZ

0 comments


#278 Stefan Schmidt / stafue - Score: 26 - 12/06/13 @ 14:34
:sort nu<CR>:%s/\d\+\n//<CR>$DZZ

0 comments


#279 wilddog64 / chengkai318 - Score: 26 - 12/17/13 @ 21:37
:sort nu<CR>10J:s/ \d\+//g<CR>ZZ

0 comments


#280 luffy / raxcoi - Score: 26 - 06/12/15 @ 04:08
:sor nu<CR>:%s/ \d\+$/<CR>VggJZZ

0 comments


#281 George Angelopoulos / g_usermod - Score: 26 - 08/04/16 @ 23:45
:sor nu<CR>qq$dF x<Esc>Jq8@qf DZZ

0 comments


#282 Gurukandhamoorthi / Gurukandhamoor1 - Score: 26 - 07/14/17 @ 16:29
:sor nu<CR>qq$F D<CR>q9@qgg10JZZ

0 comments


#283 Ankit Shankar / thelastnode - Score: 27 - 12/30/10 @ 09:44
:sort nu<CR>qa/\d$<CR>vF xJq9@aZZ

0 comments


#284 Yannick LM / yanicklm - Score: 27 - 12/30/10 @ 16:22
:sor nu<CR>:%s/\d\+\n//<CR>$x:wq<CR>

0 comments


#285 Pradeep Kumar / pradeep6kumar - Score: 27 - 12/12/12 @ 13:41
:sor nu<CR>:%s/\d.*\n//g<CR>A<BS><Esc>ZZ

0 comments


#286 Jonas Engman / jodas - Score: 27 - 02/18/13 @ 21:21
:sor nu<CR>10gJ:s/\d\+//g<CR>$xZZ

0 comments


#287 Ben C / cben - Score: 28 - 12/29/10 @ 06:24
:sor nu<CR>:%s/ \S*$//<CR>:%j<CR>:wq<CR>

0 comments


#288 jonlorusso / jonlorusso - Score: 28 - 12/30/10 @ 01:46
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ

0 comments


#289 Tien Le / tienlex - Score: 28 - 01/04/11 @ 00:50
:sort nu<CR>10gJf D:s/\d*//g<CR>ZZ

0 comments


#290 tdirrenb / tdirrenb - Score: 28 - 05/16/11 @ 03:17
:sor nu<CR>:%s/\d*\n//<CR>Ax<Esc>xx<Esc>ZZ

0 comments


#291 sathish316 / sathish316 - Score: 28 - 11/18/12 @ 17:37
:sor nu<CR>:%s/\d\n/<CR>f!ld$<Esc>:wq<CR>

0 comments


#292 jgpaiva / jgpaiva - Score: 28 - 01/31/14 @ 12:45
:sor un<CR>:%s/ \d\?\d/<CR>gg10JZZ

0 comments


#293 Chris Parsons / chrismdp - Score: 29 - 12/29/10 @ 23:02
:sort un|%s/\d\n//e<CR>f!lDZZ

0 comments


#294 sorami / boredoms - Score: 29 - 04/30/11 @ 22:24
:sor nu<CR>10J:%s/ [0-9]\+//g<CR>ZZ

0 comments


#295 くま55 / kumack55 - Score: 29 - 04/03/13 @ 12:27
:sor nu|%s/[0-9]//g<CR>gg10J$xZZ

0 comments


#296 Ryan van Rensburg / rdvr001 - Score: 29 - 07/28/16 @ 18:20
:sor n u|%s/\d\<kPlus>//g|1,$j<CR>$xZZ

0 comments


#297 Jan B. / bracki - Score: 30 - 12/29/10 @ 12:38
:sor nu<CR>10J:s/ \d\+//g<CR><Esc>:x<CR>

0 comments


#298 Joe McCall / joem86 - Score: 31 - 12/29/10 @ 08:32
:sor n u<CR>:%s, \d\+,,<CR>gg10JZZ

0 comments


#299 solsTiCe d'Hiver / solstice_dhiver - Score: 31 - 12/30/10 @ 18:57
:sort un<CR>:%s/\d*$//<CR>gg10J$D:wq<CR>

0 comments


#300 Kudryavtsev Alexandr / kudryav_a - Score: 31 - 12/16/12 @ 19:18
:sor nu<NL>:%s/\d//g<NL>:1,10joi<NL>$xZZ

0 comments


#301 fuku1026 / fukusuke1026 - Score: 31 - 07/13/17 @ 14:15
:sort un<CR>:%s\<BS>/\d\n//g<CR>$xx<Esc>:wq<CR>

0 comments


#302 Will Furnass / WillFurnass - Score: 33 - 05/08/12 @ 21:52
#:sort nu /\D*/<CR>:%s/[0-9]*\n<CR>$xZZ

0 comments


#303 crainist / crainist - Score: 34 - 12/30/10 @ 21:06
:sort u n /\d*/<CR>:%s/\d*\n//<CR>$x:wq<CR>

0 comments


#304 Nacho Barrientos / nachobarrientos - Score: 40 - 12/29/10 @ 13:34
:sort un<CR>:%s/[0-9]\+//<CR>gg9JJA<BS><Esc>:wq<CR>

0 comments


#305 DJ Adams / qmacro - Score: 44 - 12/29/10 @ 17:43
:sort u /\d/ r<CR>ddGpggVGJ:s/\s\d//g<CR>$x:wq<CR>

0 comments


#306 Jordan Lewis / JordanALewis - Score: 55 - 12/28/10 @ 23:18
:%s/\(.*\) \(.*\)/\2 \1<CR>:sort u<CR>jddGp5kddpgg<C-V>Glx10J:wq<CR>

0 comments


#307 Heath Ritchie / heathritchie - Score: 69 - 11/13/12 @ 15:16
qq$x0Pquu:%normail <BS><BS><BS>l @q<CR>8GxG8G$xxkkddkr6jddgg:sort<CR><C-V>jjjjjjjjx10JZZ

0 comments


#308 Tom Morris / tommorris - Score: 88 - 12/30/10 @ 08:16
11ggddggP5ggddggp8ggdd2ggp5ggdd2kp2jdd2kpjddpjddjdd2kpGdd2kpGdd/<BS>:%s/\d//g<CR>gg10J$x:wq<CR>

0 comments


#309 drio / drio - Score: 95 - 12/29/10 @ 23:05
4Gdd10Gp9Gdd10Gp4Gdd2Gdd9Gp3Gdd9Gp1Gdd9Gp4Gdd9Gp3Gdd10Gp2Gdd1Gdd4Gp<Esc>:%s/\d$//<CR>1GJJJJJJJJJ$Dx:x<CR>

0 comments


#310 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

310 active golfers, 982 entries

Leaderboard (lowest score wins):
20
#1 - rabidpraxis / rabidpraxis

12/30/2010 at 09:27PM

20
#2 - clint tseng / cxlt

12/30/2010 at 09:30PM

20
#3 - Henrik Nyh / henrik

12/31/2010 at 10:31AM

20
#4 - Behnam Esfahbod / zwnj

12/31/2010 at 01:45PM

20
#5 - derp derp / derp__

01/02/2011 at 02:00AM

20
#6 - Fitz / Fitzface

01/02/2011 at 07:38PM

20
#7 - Ravil Bayramgalin / brainopia

01/02/2011 at 09:43PM

20
#8 - Tim Dean / Tmdean

01/05/2011 at 08:31PM

20
#9 - Wei Dai / clvv42

01/06/2011 at 10:06AM

20
#10 - Oleg Roshupkin / jjjahson

01/06/2011 at 10:08AM

20
#11 - Ujjwol Lamichhane / Ujjwol

01/06/2011 at 11:43AM

20
#12 - Balkoth / _Balkoth_

01/08/2011 at 05:02PM

20
#13 - Utkarsh Kukreti / utkarshkukreti

01/09/2011 at 12:24AM

20
#14 - Federico Galassi / federicogalassi

01/10/2011 at 12:43PM

20
#15 - Andrey Ivanov / Bytamine

01/19/2011 at 07:52PM

20
#16 - Andrey A. Ugolnik / andreyugolnik

01/19/2011 at 11:31PM

20
#17 - Nathan Farrington / nfarring

01/28/2011 at 08:45PM

20
#18 - vg / vimgolfer

02/23/2011 at 10:35AM

20
#19 - Frederik Mogensen / fmogensen

03/31/2011 at 10:55AM

20
#20 - (Emile (Swarts)) / EmileSwarts

05/30/2011 at 11:25AM

20
#21 - not so punk :] / notsopunk

06/26/2011 at 04:16AM

20
#22 - vimgolf / vimgolf1

07/10/2011 at 06:08AM

20
#23 - Hu Junfeng / junfeng

07/15/2011 at 08:54AM

20
#24 - Sammasati / sammasati0

07/15/2011 at 04:21PM

20
#25 - Ivan Evtukhovich / evtuhovich

07/30/2011 at 06:22PM

20
#26 - Jason Then / racc69

08/08/2011 at 04:39AM

20
#27 - Neil / spameldoon

08/21/2011 at 10:12AM

20
#28 - quintin / quintinjeannoel

08/29/2011 at 08:24PM

20
#29 - Simon's Calf / simonscarfe

08/31/2011 at 08:35PM

20
#30 - Jesús Espino / jespinog

09/06/2011 at 09:12AM