Create a pandoc compatible table
In [this vimcast][1], a featured gist from Tim Pope shows how to quickly make a simple table structure. How fast can you convert it to pandoc's markdown style? [1]: http://vimcasts.org/episodes/aligning-text-with-tabular-vim/
Start file
| This | Is | A Table | Example | | I'm | going | to | fill | | it | with | random | information | | just | to | save | me | | time. | In | the | spirit | | of | vim | I | am | | quite | often | extremely | lazy. |
End file
This Is A Table Example ----- ----- --------- ----------- I'm going to fill it with random information just to save me time. In the spirit of vim I am quite often extremely lazy.
View Diff
1,7c1,8 < | This | Is | A Table | Example | < | I'm | going | to | fill | < | it | with | random | information | < | just | to | save | me | < | time. | In | the | spirit | < | of | vim | I | am | < | quite | often | extremely | lazy. | --- > This Is A Table Example > ----- ----- --------- ----------- > I'm going to fill > it with random information > just to save me > time. In the spirit > of vim I am > quite often extremely lazy.
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 55 remaining solutions by signing in and submitting your own entry
#56 Angela Harms / @angelaharms - Score: 84 - 06/19/12 @ 23:08
:%s/|//g<BS>g<CR>:%/<BS>s/^ //h<BS><CR>:%s/\s\+$/<CR>:1a<CR>:<BS>----- ----- --------- -----------<CR>.<CR>:wq<CR>
0 comments