Monday, September 5, 2011

Re: How can I select multiple lines that are not in a continuous chunk?

Kay Z wrote:
> Thanks for the reply. Now I know it isn't possible to do so.
>
> I was trying to align using Tabularize plugin:
>
> 1. name1="Woof"
> 2. lucky_dog = lucky( "dog_one"= name1,
> 3. "dog_two"= name1 )
> 4. name2="Howl"
>
> I wanted it to align like this:
>
> 1. name1 = "Woof"
> 2. lucky_dog = lucky( "dog_one"= name1,
> 3. "dog_two"= name1 )
> 4. name2 = "Howl"
>
> But I cannot do so because Tabularize will take third line into consideration, and align everything into:
>
> 1.name1 = "Woof"
> 2.lucky_dog = lucky( "dog_one"= name1,
> 3. "dog_two" = name1 )
> 4.name2 = "Howl"
>
The Align plugin allows you to set up patterns that will cause lines to
be skipped during alignment.

:AlignCtrl v ^\s
:Align =

You may get Align from
http://drchip.0sites.net/astronaut/vim/index.html#ALIGN

The result of this:

name1 = "Woof"
lucky_dog = lucky( "dog_one" = name1,
"dog_two"= name1 )
name2 = "Howl"

(alignment doesn't look right in variable width fonts)

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: