Vimwiki tables

2010-02-09 23:29; Tags:

I have changed table syntax. Now it has a header and thin cell borders.
I have also made tables to be auto-formattable which is kind of good thing.

Use :VimwikiTable command to create default table with 5 columns and 2 rows:

|   |   |   |   |   |
|---+---+---+---+---|
|   |   |   |   |   |

Let’s add some text into first cell:

| First Name  |   |   |   |   |
|---+---+---+---+---|
|   |   |   |   |   |

Whenever you press Tab, Enter or leave Insert mode table is formatted:

| First Name |   |   |   |   |
|------------+---+---+---+---|
|            |   |   |   |   |

You can easily create nice looking text tables, just press Tab and enter new values:

| First Name | Last Name  | Age | City     | e-mail               |
|------------+------------+-----+----------+----------------------|
| Vladislav  | Pokrishkin | 31  | Moscow   | vlad_pok@smail.com   |
| James      | Esfandiary | 27  | Istanbul | esfandiary@tmail.com |

Get vimwiki-dev-2010-02-09.zip to test it out.

2 Responses to “Vimwiki tables”

  1. Joe says:

    This was one thing that impressed me with emacs org-mode, and now you’ve done it for Vim!
    It works really well, good job.

  2. Maxim Kim says:

    Thx, Joe!

Leave a Reply

Powered by WordPress