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.
#186 sjatkinson / @sjatkinson - Score: 25 - 08/29/11 @ 20:30
:sor nu<CR>:%s/ \d/<CR>$xVggJZZ
0 comments
#187 IPhone Notiz / @MyIPhoneNotes - Score: 25 - 11/15/11 @ 09:26
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ
0 comments
#188 lukecowell / @lukecowell - Score: 25 - 12/12/11 @ 20:33
:sor un|%s/\d.*\n//g<CR>$xZZ
0 comments
#189 Drew Benedetti / @cnorsl - Score: 25 - 02/16/12 @ 14:57
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#190 lucapette / @lucapette - Score: 25 - 04/27/12 @ 07:39
:<Up>sor nu|%s/\d*\n//<CR>A<BS><Esc>ZZ
0 comments
#192 Chris Brown / @engineercyb - Score: 25 - 07/12/12 @ 19:33
:sor un<CR>qq$xx+q9@qx:%j<CR>ZZ
0 comments
#193 Andrey Yankin / @YankinAndrey - Score: 25 - 07/20/12 @ 04:17
:sor nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#195 Tarcísio Gruppi / @TXGruppi - Score: 25 - 12/11/12 @ 08:01
:sor nu<CR>:%s/\d\+\n//<CR>$xZZ
0 comments
#196 Paul Paradise / @natacado - Score: 26 - 12/29/10 @ 09:25
:sor nu<CR>:%s/ \d//<CR>VggJ$xZZ
0 comments
#197 Chris Parsons / @chrismdp - Score: 26 - 12/29/10 @ 15:16
<fd-35>:sor un|%j|s/ \d\+//|x<CR>
0 comments
#198 Sam Saffron / @samsaffron - Score: 26 - 12/29/10 @ 23:43
:sor un|%s/\d.*\n//g<CR>$d ZZ
0 comments
#199 Jordi Romero / @jordiromero - Score: 26 - 01/07/11 @ 13:19
:sor nu<CR>10gJ:s/\d*//g<CR>$xZZ
0 comments
#200 conor / @omgconor - Score: 26 - 01/21/11 @ 21:34
:sor nu|%s/\d*\m<BS>n/<CR>$dw<Esc>ZZ
0 comments
#201 TchiKong / @tchikong - Score: 26 - 02/03/11 @ 03:04
:%sort nu<CR>:%s/\d\n//<CR>$xxZZ
0 comments
#202 Steven Noonan / @neunon - Score: 26 - 02/11/11 @ 21:41
:sor nu<CR>qa/\d$<CR>vF xJq9@aZZ
0 comments
#203 Eivind Jahren / @HaskellElephant - Score: 26 - 03/27/11 @ 08:07
:sor nu<CR>:%s/ \d/<CR>gg10J$xZZ
0 comments
#205 Ankit Shankar / @thelastnode - Score: 27 - 12/30/10 @ 01:44
:sort nu<CR>qa/\d$<CR>vF xJq9@aZZ
0 comments
#206 Yannick LM / @yanicklm - Score: 27 - 12/30/10 @ 08:22
:sor nu<CR>:%s/\d\+\n//<CR>$x:wq<CR>
0 comments
#207 Pradeep Kumar / @pradeep6kumar - Score: 27 - 12/12/12 @ 05:41
:sor nu<CR>:%s/\d.*\n//g<CR>A<BS><Esc>ZZ
0 comments
#208 Jonas Engman / @jodas - Score: 27 - 02/18/13 @ 13:21
:sor nu<CR>10gJ:s/\d\+//g<CR>$xZZ
0 comments
#209 Ben C / @cben - Score: 28 - 12/28/10 @ 22:24
:sor nu<CR>:%s/ \S*$//<CR>:%j<CR>:wq<CR>
0 comments
#210 fake Jon Lorusso / @jonlorusso - Score: 28 - 12/29/10 @ 17:46
<fd-35>:sor nu<CR>10J:s/ \d\+//g<CR>ZZ
0 comments
#211 Tien Le / @tienlex - Score: 28 - 01/03/11 @ 16:50
:sort nu<CR>10gJf D:s/\d*//g<CR>ZZ
0 comments
#212 tdirrenb / @tdirrenb - Score: 28 - 05/15/11 @ 20:17
:sor nu<CR>:%s/\d*\n//<CR>Ax<Esc>xx<Esc>ZZ
0 comments
#213 sathish316 / @sathish316 - Score: 28 - 11/18/12 @ 09:37
:sor nu<CR>:%s/\d\n/<CR>f!ld$<Esc>:wq<CR>
0 comments
#214 sorami / @boredoms - Score: 29 - 04/30/11 @ 15:24
:sor nu<CR>10J:%s/ [0-9]\+//g<CR>ZZ
0 comments
#215 kiyofumi.kmt / @kumack55 - Score: 29 - 04/03/13 @ 05:27
:sor nu|%s/[0-9]//g<CR>gg10J$xZZ
0 comments
#216 Jan B. / @bracki - Score: 30 - 12/29/10 @ 04:38
<fd-35>:sor nu<CR>10J:s/ \d\+//g<CR><Esc>:x<CR>
0 comments
#217 tridactyla / @tridactyla - Score: 31 - 12/28/10 @ 15:39
<fd-35>:sor nu<CR>:%s/ \d\ //g<CR>:%j<CR>:x<CR>
0 comments
#218 Joe McCall / @joem86 - Score: 31 - 12/29/10 @ 00:32
<fd-35>:sor n u<CR>:%s, \d\+,,<CR>gg10JZZ
0 comments
#219 solsTiCe d'Hiver / @solstice_dhiver - Score: 31 - 12/30/10 @ 10:57
:sort un<CR>:%s/\d*$//<CR>gg10J$D:wq<CR>
0 comments
#220 Kudryavtsev Alexandr / @kudryav_a - Score: 31 - 12/16/12 @ 11:18
:sor nu<NL>:%s/\d//g<NL>:1,10joi<NL>$xZZ
0 comments
#221 Will Furnass / @WillFurnass - Score: 33 - 05/08/12 @ 14:52
#:sort nu /\D*/<CR>:%s/[0-9]*\n<CR>$xZZ
0 comments
#222 Nacho Barrientos / @nachobarrientos - Score: 34 - 12/29/10 @ 12:10
5:sor nu<CR>:%s/\s\+\d\+//<CR>gg10J:wq<CR><NL>
0 comments
#223 crainist / @crainist - Score: 34 - 12/30/10 @ 13:06
:sort u n /\d*/<CR>:%s/\d*\n//<CR>$x:wq<CR>
0 comments
#224 Francisco Dibar / @frandibar - Score: 43 - 01/11/11 @ 21:47
:%!rev<CR>M2ddk<C-A>:%so<Tab><CR>dwj<C-V>Llx:%!rev<CR>ddGp:%j|x<CR>
0 comments
#225 DJ Adams / @qmacro - Score: 44 - 12/29/10 @ 09:43
<fd-35>:sort u /\d/ r<CR>ddGpggVGJ:s/\s\d//g<CR>$x:wq<CR>
0 comments
#226 Jordan Lewis / @JordanALewis - Score: 55 - 12/28/10 @ 15:18
:%s/\(.*\) \(.*\)/\2 \1<CR>:sort u<CR>jddGp5kddpgg<C-V>Glx10J:wq<CR>
0 comments
#227 Przemysław Pawełczyk / @przemoc86 - Score: 59 - 12/30/10 @ 14:25
:%s/\(.*\) \(\d*\)/\2 \1/<CR>:%!sort -ns|uniq<CR>:%s/\d* /<CR>:%j<CR>ZZ
0 comments
#228 Stephen Paul Weber / @singpolyma - Score: 68 - 12/28/10 @ 19:08
<fd-35>v<PageDown>:!sort -t' ' -k3<CR>ddGp6<Up>ddddp3<Up>dd:%s/\d*\n//f<BS>g<CR><End>x:wq<CR>
0 comments
#229 Heath Ritchie / @heathritchie - Score: 69 - 11/13/12 @ 07:16
qq$x0Pquu:%normail <BS><BS><BS>l @q<CR>8GxG8G$xxkkddkr6jddgg:sort<CR><C-V>jjjjjjjjx10JZZ
0 comments
#230 Tom Adams / @holizz - Score: 87 - 12/28/10 @ 15:06
:%!perl -pe's/^(.*) (\d )$/$2 $1/'|sort -n|uniq|cut -f2- -d\ |tr '\n' ' '<CR>3fb2dw2wP$xZZ
0 comments
#231 Tom Morris / @tommorris - Score: 88 - 12/30/10 @ 00:16
11ggddggP5ggddggp8ggdd2ggp5ggdd2kp2jdd2kpjddpjddjdd2kpGdd2kpGdd/<BS>:%s/\d//g<CR>gg10J$x:wq<CR>
0 comments
VimGolf