rob (2008-12-21 09:01 -0800) wrote:

> Is there a way, like a plugin or a perl/python tool, to draw ascii
> tables like below without having to painfully do it by hand?  I'd like
> to be able to a) easily navigate between cells b)  <left|right|top|
> bottom> justify text in cell c) edit cells and have the table
> readjust column width, table size??

>From www.vim.org I found a couple of scripts which are at least related
to what you ask for:

    http://www.vim.org/scripts/script.php?script_id=857
    http://www.vim.org/scripts/script.php?script_id=769
    http://www.vim.org/scripts/script.php?script_id=173

Then there is the excellent DrawIt plugin for drawing. It can do boxes
too so it may help building tables. You'd probably want to use replace
mode to insert text to a table cell.

    http://www.vim.org/scripts/script.php?script_id=40

> Sounds like I'm being greedy and asking for too much, but I'm a sucker
> for these ascii tables and diagrams like the ones in RFC's. They just
> look beautiful.

If you really need this feature a lot you could use Emacs at least for
these table-editing tasks. Lots of features to make editing Ascii tables
easy. One of them (orgtbl-mode) can even do spreadsheets and
semi-automatic calculations. But for occasional use it may not be a good
idea to learn another editor.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to