Benjamin R. Haskell wrote:
My other question about tab-delimited files reminded me to ask about this, too. I frequently want to vertically align text.

E.g. the 'comment's in the following:

create table blah (
   id int primary key auto_increment comment 'autoid',
   info text                         comment 'some text',
   another_value varchar(255)        comment 'another value'
);

Or the '|'s and '\'s in this:

filename is [table].[YYYYmmdd].[###].[type]
             |       |          |     \-- bz2 or xz
             |       |          \-- per-day run identifier
             |       \-- date files generated
             \-- replace underscores with hyphens

Is there a built-in command to roughly: "pad with spaces until the cursor is below the next non-whitespace character on the previous line"? Or a plugin? Or will I be writing some vimscript? :-)


Look into Align.vim;  \tsp  does whitespace based alignment

      http://mysite.verizon.net/astronaut/vim/index.html#ALIGN     (beta)
      http://vim.sourceforge.net/scripts/script.php?script_id=1195 (stable)

Regards,
Chip Campbell

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to