Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5cc31feaffd607000ccf6ea7

html paragraph to table

reformat html paragraph to table

Start file
<p>task 1</p>
<p>description here ....</p>
<p>task 2</p>
<p>some other description here ....</p>
End file
    <td>task 1</td>
    <td>description here ....</td>
    <td>task 2</td>
    <td>some other description here ....</td>

View Diff

< <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>


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 91 remaining solutions by signing in and submitting your own entry
#92 ippachi / @ippachi1218 - Score: 158 - 05/07/19 @ 15:36
lciwtable<Esc><Esc>jjjjjjhhh.khhhhh:sp<BS>/p>/td/<BS>>/g<CR><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>


Created by: @sig_segv

92 active golfers, 422 entries

Leaderboard (lowest score wins):
#91 - Matthias Kausl / @sig_segv

04/26/2019 at 03:15PM

#92 - ippachi / @ippachi1218

05/07/2019 at 03:36PM