Reverse and double space
Reverse the order of the given lines and double space everything
Start file
1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. 2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. 3. Aenean eu leo quam. 4. Pellentesque ornare sem lacinia quam venenatis vestibulum. 5. Aenean lacinia bibendum nulla sed consectetur.
End file
5. Aenean lacinia bibendum nulla sed consectetur. 4. Pellentesque ornare sem lacinia quam venenatis vestibulum. 3. Aenean eu leo quam. 2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. 1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.
View Diff
1,4d0 < 1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. < 2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. < 3. Aenean eu leo quam. < 4. Pellentesque ornare sem lacinia quam venenatis vestibulum. 5a2,10 > > 4. Pellentesque ornare sem lacinia quam venenatis vestibulum. > > 3. Aenean eu leo quam. > > 2. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. > > 1. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. >
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.
#90 Adam Dratwinski / @adwinsky - Score: 17 - 11/27/12 @ 12:35
:sor!<CR>:%s/$/<C-V><CR><CR>ZZ
0 comments
#91 Pradeep Kumar / @pradeep6kumar - Score: 17 - 12/12/12 @ 03:17
:sor!<CR>:%s/$/\r<CR>ZZ
0 comments
#92 Daniel Erlandsson / @danneerlandsson - Score: 18 - 05/04/12 @ 03:19
:sort!<CR>qqo<Esc>jq4@qZZ
0 comments
#94 Underhill Labs / @underhilllabs - Score: 18 - 10/29/12 @ 08:44
:so<Tab>!<CR>o<Esc>+.+.+.+.ZZ
0 comments
#98 Jacob Vosmaer / @jacobvosmaer - Score: 19 - 06/03/12 @ 06:42
:g/^/m0<CR>:%s/$/\r<CR>ZZ
0 comments
#99 captain_morgan / @captain_morgan - Score: 19 - 06/05/12 @ 02:59
:g/^/m0<CR>:%s/$/\r<CR>ZZ
0 comments
#100 Tyler Breisacher / @tbreisacher - Score: 19 - 08/24/12 @ 23:10
:%sort!<CR>qao<Esc>jq4@aZZ
0 comments
#102 Karun Ramakrishnan / @the_karun - Score: 19 - 04/08/13 @ 10:58
:sor!<CR>:%s/$/\r/g<CR>ZZ
0 comments
#103 Mac Heller-Ogden / @twosoul - Score: 20 - 05/01/12 @ 17:52
:g/^/m0<CR>:g/^/pu _<CR>ZZ
0 comments
#105 Will Furnass / @WillFurnass - Score: 20 - 05/16/12 @ 07:12
:g/^/m0<CR>:g/^/pu _<CR>ZZ
0 comments
#106 Viswanath Sivakumar / @viswanathgs - Score: 20 - 08/30/12 @ 14:05
:g/^/m0<CR>:%s/$/\r/<CR>ZZ
0 comments
#108 J Paul Daigle / @jpauldaigle - Score: 22 - 05/23/12 @ 12:06
qao<Esc>Vkx/5<CR>p:1<CR>q3@ao<Esc>ZZ
0 comments
#109 Viktor Jackson / @AntiStalinista - Score: 25 - 05/04/12 @ 20:16
:g/^/m0<CR>o<Esc>j.j.j.j.<Esc>:w<CR>:q<CR>
0 comments
#110 bsjd / @bsjd - Score: 27 - 05/07/12 @ 10:31
4ddo<Esc>p3ddo<Esc>p2ddo<Esc>pddo<Esc>po<Esc>ZZ
0 comments
#111 Thijs Brobbel / @tiesmaster - Score: 34 - 05/29/12 @ 05:59
ddGpo<Esc>kO<Esc>ggdd}PO<Esc>ggdd}PO<Esc>ggddpO<Esc>ZZ
0 comments
#112 Noel Alejandro / @noelrock333 - Score: 77 - 06/22/12 @ 17:55
:%s/s<BS>s<BS><BS>/x<BS>2<BS>.$.<BS>/.|<BS>\<BS>'<BS>\r/<CR>jkdd!G<BS><BS><BS>1GP<Down>dd8Gp3Gdd6Gpkddd2Gup<Esc>uudd2Gp<Esc>:w<CR><C-W>q
0 comments
VimGolf