Monday, November 30, 2009

Re: How to beautify/tablize some C code

On Nov 29, 11:38 pm, Robert Bu <robert...@gmail.com> wrote:
> Hi,
>
> For example, I have some C code:
> helloa;
> helloab;
> hellofgh;
>
> Is there a way to change the C code into the form, which looks like:
> helloa      ;
> helloab    ;
> hellofgh   ;
> Where the semicolon is at a "TAB" position. So that I can use
> block-insert to insert some code, such as:
> helloa     ("helloa    ");
> helloab   ("helloab ");
> hellofgh  ("hellofgh ");

You might have a look at Dr. Chip Campbell's Align plugin. It's very
handy for aligning all sorts of things...

Brett Stahlman

>
> Thanks in advance.

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

No comments: