Tuesday, April 30, 2013

Re: Using "Align" plugin without inserting whitespace into email addresses?

On Tuesday, April 30, 2013 7:00:12 PM UTC+2, Philip Rhoades wrote:
> I have been using the "Align" plugin quite happily for a long time now
>
> but I came across a need where it didn't do what I wanted: a block of
>
> lines consisting of only email addresses - I wanted to align on the "@"
>
> character - is there a way to do this without inserting whitespace into
>
> the email addresses? Am I missing something?

I prefer using Tabular for my alignment tasks.

Using Tabular you would do

:Tab /@/r0c0l0

"/@/" aligns on the @ character, "r0c0l0" is the format specifier,
stating "right-align first column, center-align second column,
left-align third column, all with no padding whitespace".

https://github.com/godlygeek/tabular
http://vimcasts.org/episodes/aligning-text-with-tabular-vim/

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: