2009/4/1 Tobia Conforto <[email protected]>:
>
> Dear Vim users,
> I would like to have an automatic tab stop feature, while editing
> tabular data.
>
> Let's say I'm editing this data:
> one^Iplus^Ione
> two^Iminus^Itwo
> seventeen^Iis^Iseventeen
>
> I would like Vim to display it as:
> one        plus   one
> two        minus  two
> seventeen  is     seventeen
>
> That is, hoping my mailer gets the spaces right, I would like Vim to
> automatically choose a tabstop of 11 for the first tab stop, and an
> additional 7 (or cumulative 18) for the second tab stop.  These
> numbers would be chosen automatically so that every "data column" in
> the buffer would be correctly aligned, only taking as much space as
> the widest cell of that column plus two spaces.
>
> If 'tabstop' accepted a list of numbers (eg. set tabstop=11,7) I could
> easily write this feature as a plugin, watching every editing
> operation and recomputing the list of tabstops on the fly.  But alas,
> I cannot seem to find support for this in Vim.
>
> Does anyboy have any idea?

Not necessarily that helpful, but number 19 in the Vim voting results [1] is:

"add flexible tab stops, can be used for tables"

I've voted for this, so all I can suggest is that you add your vote [2]...

[1] http://www.vim.org/sponsor/vote_results.php
[2] http://www.vim.org/sponsor/index.php

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

Reply via email to