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.
#248 lucapette / lucapette - Score: 25 - 04/27/12 @ 14:39
:<Up>sor nu|%s/\d*\n//<CR>A<BS><Esc>ZZ
0 comments
#250 Chris Brown / engineercyb - Score: 25 - 07/13/12 @ 02:33
:sor un<CR>qq$xx+q9@qx:%j<CR>ZZ
0 comments
#251 Andrey Yankin / YankinAndrey - Score: 25 - 07/20/12 @ 11:17
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#253 Tarcísio Gruppi / txgruppi - Score: 25 - 12/11/12 @ 16:01
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ
0 comments
#254 Bart of Denver / bartofdenver - Score: 25 - 08/12/13 @ 22:32
:sor un<CR>:%s/ \d<CR>1G10J$xZZ
0 comments
#256 Hachez Floran / FloranHachez - Score: 25 - 09/04/13 @ 12:28
<CR>:sor un|%s/ \d\+//|%j|x<CR>
0 comments
#257 nona urbiz / nospampleasemam - Score: 25 - 09/28/13 @ 07:32
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#260 Felipe Jaramillo F / mrfelipe - Score: 25 - 04/03/14 @ 00:24
:sor nu<CR>:%s/\d\n//g<CR>$xxZZ
0 comments
#261 Patrick Pitoscia / Patrick03960431 - Score: 25 - 08/10/14 @ 02:02
:sor nu|%s/ \d\n/ <CR>$xxxZZ
0 comments
#263 Justin Knag / justinknag - Score: 25 - 09/16/14 @ 06:34
:sor nu<CR>qq$F Djq9@qH10JZZ
0 comments
#264 Herr Oppermann / HerrOppermann - Score: 25 - 09/18/14 @ 13:45
:sor nu<CR>10J:s/ \d//g<CR>$xZZ
0 comments
#265 aisapatino / aisapatino - Score: 25 - 09/30/15 @ 22:34
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ
0 comments
#266 Gerald Tilma / GeraldTilma - Score: 25 - 10/21/15 @ 02:15
:sor un<CR>:%s/\d\n//g<CR>$xxZZ
0 comments
#267 Nicolas Nistal / niconistal - Score: 25 - 11/19/15 @ 04:56
:sor nu<CR>VGJ:s/ \d\+//g<CR>ZZ
0 comments
#269 Paul Paradise / natacado - Score: 26 - 12/29/10 @ 17:25
:sor nu<CR>:%s/ \d//<CR>VggJ$xZZ
0 comments
#270 Sam Saffron / samsaffron - Score: 26 - 12/30/10 @ 07:43
:sor un|%s/\d.*\n//g<CR>$d ZZ
0 comments
#271 Jordi Romero / jordiromero - Score: 26 - 01/07/11 @ 21:19
:sor nu<CR>10gJ:s/\d*//g<CR>$xZZ
0 comments
#272 conor / omgconor - Score: 26 - 01/22/11 @ 05:34
:sor nu|%s/\d*\m<BS>n/<CR>$dw<Esc>ZZ
0 comments
#274 Steven Noonan / neunon - Score: 26 - 02/12/11 @ 05:41
:sor nu<CR>qa/\d$<CR>vF xJq9@aZZ
0 comments
#275 Eivind Jahren / HaskellElephant - Score: 26 - 03/27/11 @ 15:07
:sor nu<CR>:%s/ \d/<CR>gg10J$xZZ
0 comments
#277 Stefan Schmidt / stafue - Score: 26 - 12/06/13 @ 14:34
:sort nu<CR>:%s/\d\+\n//<CR>$DZZ
0 comments
#278 wilddog64 / chengkai318 - Score: 26 - 12/17/13 @ 21:37
:sort nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#280 George Angelopoulos / g_usermod - Score: 26 - 08/04/16 @ 23:45
:sor nu<CR>qq$dF x<Esc>Jq8@qf DZZ
0 comments
#281 Gurukandhamoorthi / Gurukandhamoor1 - Score: 26 - 07/14/17 @ 16:29
:sor nu<CR>qq$F D<CR>q9@qgg10JZZ
0 comments
#282 Ankit Shankar / thelastnode - Score: 27 - 12/30/10 @ 09:44
:sort nu<CR>qa/\d$<CR>vF xJq9@aZZ
0 comments
#283 Yannick LM / yanicklm - Score: 27 - 12/30/10 @ 16:22
:sor nu<CR>:%s/\d\+\n//<CR>$x:wq<CR>
0 comments
#284 Pradeep Kumar / pradeep6kumar - Score: 27 - 12/12/12 @ 13:41
:sor nu<CR>:%s/\d.*\n//g<CR>A<BS><Esc>ZZ
0 comments
#285 Jonas Engman / jodas - Score: 27 - 02/18/13 @ 21:21
:sor nu<CR>10gJ:s/\d\+//g<CR>$xZZ
0 comments
#286 Ben C / cben - Score: 28 - 12/29/10 @ 06:24
:sor nu<CR>:%s/ \S*$//<CR>:%j<CR>:wq<CR>
0 comments
#287 jonlorusso / jonlorusso - Score: 28 - 12/30/10 @ 01:46
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#289 tdirrenb / tdirrenb - Score: 28 - 05/16/11 @ 03:17
:sor nu<CR>:%s/\d*\n//<CR>Ax<Esc>xx<Esc>ZZ
0 comments
#290 sathish316 / sathish316 - Score: 28 - 11/18/12 @ 17:37
:sor nu<CR>:%s/\d\n/<CR>f!ld$<Esc>:wq<CR>
0 comments
#292 Chris Parsons / chrismdp - Score: 29 - 12/29/10 @ 23:02
:sort un|%s/\d\n//e<CR>f!lDZZ
0 comments
#293 sorami / boredoms - Score: 29 - 04/30/11 @ 22:24
:sor nu<CR>10J:%s/ [0-9]\+//g<CR>ZZ
0 comments
#295 Ryan van Rensburg / rdvr001 - Score: 29 - 07/28/16 @ 18:20
:sor n u|%s/\d\<kPlus>//g|1,$j<CR>$xZZ
0 comments
#296 Jan B. / bracki - Score: 30 - 12/29/10 @ 12:38
:sor nu<CR>10J:s/ \d\+//g<CR><Esc>:x<CR>
0 comments
#297 Joe McCall / joem86 - Score: 31 - 12/29/10 @ 08:32
:sor n u<CR>:%s, \d\+,,<CR>gg10JZZ
0 comments
#298 solsTiCe d'Hiver / solstice_dhiver - Score: 31 - 12/30/10 @ 18:57
:sort un<CR>:%s/\d*$//<CR>gg10J$D:wq<CR>
0 comments
#299 Kudryavtsev Alexandr / kudryav_a - Score: 31 - 12/16/12 @ 19:18
:sor nu<NL>:%s/\d//g<NL>:1,10joi<NL>$xZZ
0 comments
#300 fuku1026 / fukusuke1026 - Score: 31 - 07/13/17 @ 14:15
:sort un<CR>:%s\<BS>/\d\n//g<CR>$xx<Esc>:wq<CR>
0 comments
#301 Will Furnass / WillFurnass - Score: 33 - 05/08/12 @ 21:52
#:sort nu /\D*/<CR>:%s/[0-9]*\n<CR>$xZZ
0 comments
#302 crainist / crainist - Score: 34 - 12/30/10 @ 21:06
:sort u n /\d*/<CR>:%s/\d*\n//<CR>$x:wq<CR>
0 comments
#303 Nacho Barrientos / nachobarrientos - Score: 40 - 12/29/10 @ 13:34
:sort un<CR>:%s/[0-9]\+//<CR>gg9JJA<BS><Esc>:wq<CR>
0 comments
#304 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
#305 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
#306 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
#307 Tom Morris / tommorris - Score: 88 - 12/30/10 @ 08:16
11ggddggP5ggddggp8ggdd2ggp5ggdd2kp2jdd2kpjddpjddjdd2kpGdd2kpGdd/<BS>:%s/\d//g<CR>gg10J$x:wq<CR>
0 comments
#308 drio / drio - Score: 95 - 12/29/10 @ 23:05
4Gdd10Gp9Gdd10Gp4Gdd2Gdd9Gp3Gdd9Gp1Gdd9Gp4Gdd9Gp3Gdd10Gp2Gdd1Gdd4Gp<Esc>:%s/\d$//<CR>1GJJJJJJJJJ$Dx:x<CR>
0 comments
#309 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