Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you just want text alignment into table format, I use this and it works well:</p> <p><a href="http://www.vim.org/scripts/script.php?script_id=294" rel="noreferrer">http://www.vim.org/scripts/script.php?script_id=294</a></p> <p>I wrote a <a href="http://pastebin.com/BarvM7DQ" rel="noreferrer">command line tool</a> a few years ago which does more closely what you want:</p> <p>It allows you to edit a table in CSV format:</p> <pre><code>1,my table,another field 2,my table,yet another field </code></pre> <p>Then select the block in vim, and filter it using:</p> <pre><code>'&lt;,'&gt;!~/scripts/tab </code></pre> <p>This then gives you:</p> <pre><code>------------------------------------ | 1 | my table | another field | | 2 | my table | yet another field | ------------------------------------ </code></pre> <p>If you want to edit the table again, you can select the whole table and repeat with <code>untab</code> (which is just a symlink -> tab) which converts the table back to CSV again so that you can edit.</p> <p>There's also various other options:</p> <pre><code>------------------------------------------------------------------------- | Command/Option | Purpose | |----------------|------------------------------------------------------| | tab | Reads from stdin and tabulates comma seperated input | | tab &lt;-t&gt; | Tabulates input and assumes first row are titles | | tab &lt;-h&gt; | Prints this help | | tab &lt;-nb&gt; | Tabulates without a border | | tab &lt;-fw X&gt; | Wrap fields greater than X big don't break words | | tab &lt;-fs X&gt; | Wrap fields greater than X big and break words | | tab &lt;-vp X&gt; | Vertically pad table by X lines | | tab &lt;-hp X&gt; | Horizontally pad fields by X chars | | tab &lt;-b X&gt; | Tabulates with a border made from char X | |----------------|------------------------------------------------------| | untab | Reads from stdin and untabulates table input | | untab &lt;-b X&gt; | Untabulate a table with border char X | | untab &lt;-nb&gt; | Untabulate a borderless table | ------------------------------------------------------------------------- </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload