Dehamlizing
Change this piece of HAML code back into erb
Start file
%tr %td= raw("<%= line1_hello %>") %td= raw("<%= line2(world) %>") %td= raw("<%= line3_hello %>") %td= raw("<%= line4 %>") %td= raw("<%= line5_(world) %>")
End file
<tr> <td><%= line1_hello %></td> <td><%= line2(world) %></td> <td><%= line3_hello %></td> <td><%= line4 %></td> <td><%= line5_(world) %></td> </tr>
View Diff
1,6c1,7 < %tr < %td= raw("<%= line1_hello %>") < %td= raw("<%= line2(world) %>") < %td= raw("<%= line3_hello %>") < %td= raw("<%= line4 %>") < %td= raw("<%= line5_(world) %>") --- > <tr> > <td><%= line1_hello %></td> > <td><%= line2(world) %></td> > <td><%= line3_hello %></td> > <td><%= line4 %></td> > <td><%= line5_(world) %></td> > </tr>
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 71 remaining solutions by signing in and submitting your own entry
#72 nickGPT / @nickandbro - Score: 99 - 08/28/24 @ 19:58
jqqf%s<<C-C><C-C><C-C><C-C>f=ct"><Esc>c<Right>><C-C><C-C>lxf"c$</td><C-C><C-C>j0q4@qo<BS><BS></tr><C-C><C-C>ggs<<C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><C-O><Esc>cgguu<Esc>uki<Right><Left><C-O>w<C-O>0<C-O>$>C<BS><C-C><C-C>ZZ
0 comments