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

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 by @martinodelilo:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @connermcd

56 active golfers, 214 entries

Solutions by @martinodelilo:
32
#10 - Martin Delille / @martinodelilo

09/02/2019 at 06:36PM

33
#>17 - Martin Delille / @martinodelilo

09/02/2019 at 06:35PM

34
#>19 - Martin Delille / @martinodelilo

09/02/2019 at 06:33PM

36
#>21 - Martin Delille / @martinodelilo

09/02/2019 at 06:32PM

37
#>24 - Martin Delille / @martinodelilo

09/02/2019 at 06:26PM

39
#>24 - Martin Delille / @martinodelilo

09/02/2019 at 06:13PM

41
#>27 - Martin Delille / @martinodelilo

09/02/2019 at 06:11PM

44
#>32 - Martin Delille / @martinodelilo

09/02/2019 at 06:08PM

55
#>43 - Martin Delille / @martinodelilo

09/02/2019 at 06:06PM

68
#>50 - Martin Delille / @martinodelilo

09/02/2019 at 05:59PM