Monday, January 7, 2013

Re: column alignment ?

stosss wrote:
> I start out with this:
>
> text text
> more text more text
> still more text still more text
>
> I want to end up with this:
>
> text text
> more text more text
> still more text still more text
>
> I have no idea what help to look for or if this is even possible
> except for doing it manually. Is there a way to use a specific column
> on each line to accomplish this with maybe a s/search/replace/ ?
>
What separates the two sets of text?

If its a tab, and using the Align plugin
(http://www.drchip.org/astronaut/vim/index.html#ALIGN):

use V+motion to select lines
\tab

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

No comments: