html paragraph to table
reformat html paragraph to table
Start file
<div>
<p>task 1</p>
<p>description here ....</p>
<p>task 2</p>
<p>some other description here ....</p>
</div>
End file
<table>
<tr>
<td>task 1</td>
<td>description here ....</td>
</tr>
<tr>
<td>task 2</td>
<td>some other description here ....</td>
</tr>
</table>
View Diff
1,6c1,10
< <div>
< <p>task 1</p>
< <p>description here ....</p>
< <p>task 2</p>
< <p>some other description here ....</p>
< </div>
---
> <table>
> <tr>
> <td>task 1</td>
> <td>description here ....</td>
> </tr>
> <tr>
> <td>task 2</td>
> <td>some other description here ....</td>
> </tr>
> </table>
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 125 remaining solutions by signing in and submitting your own entry
#126 ippachi / @ippachi1018 - Score: 158 - 05/07/19 @ 15:36
lciwtable<Esc><Esc>jjjjjjhhh.khhhhh:sp<BS>/p>/td/<BS>>/g<CR>n.nu:s<CR>n:s<CR>n:s<CR>n:s<CR>n:s<CR>n:s<CR>kkO<BS><tr><CR><tr<BS><BS>/tr><Esc>khhh<C-V>jI <Esc>jjVjdkkpVj<Esc><Esc>k<C-V>jI4 <BS><BS> <Esc><Esc>jkkyyjjjpkyyjjjpkkhh<C-V>jI <Esc><Esc>:wq<CR>
0 comments
Created by: @sig_segv Tweet
126 active golfers, 606 entries
Leaderboard (lowest score wins):
#48 - ๐๐๐๐๐๐๐ ๐๐๐ข๐๐๐๐๐ / @TitouanT_
04/26/2019 at 09:33PM
#59 - ใดใชใฉ@ใฆใใฆใใฆใใฆใใฆใฆใใฆใใฆใใฆใใฆใฆใใฆใใฆใใฆใใฆใฆใใฆใใฆใใฆใใฆใฆใใฆใใฆใใฆใใฆใฆ / @gorilla0513
05/04/2019 at 08:55AM