I read the recommended section before posting.  I am able to get

/*
   Comment
   1
   2
   3
 */

The problem is I can't get the closing '*' to align with the opening '/' (it 
always align's the '*''s).  The format-comments section talks about aligning 
the middle section with the beginning or end section, but not aligning the end 
section with the beginning.  Is it possible to align the opening '/' with the 
closing '*', or am I going to be stuck with deleting the space infront of */ to 
meet our coding standard?

Thanks

Jay




________________________________
From: Matt Wozniski <[email protected]>
To: [email protected]
Sent: Saturday, May 2, 2009 2:16:49 AM
Subject: Re: C Comment Autoindenting


On Sat, May 2, 2009 at 2:55 AM, Nicolas Sebrecht wrote:
>
> On Fri, May 01, 2009 at 11:33:11AM -0700, Asddfs Adf wrote:
>>    When autoindenting C comments, I'd like the left most character of the
>>    end comment to be aligned with the left most character of the begin
>>    comment:
>>    /*
>>    */.
>>    With everything that I try, I can only get the *'s to align
>>    automatically.
>>    /*
>>     */.
>>    Is there a way to get the / to align with the *?
>
> Sorry for that question, but why?
>
> It's much more readable like this:
>    /*
>     * Comment
>     */
>
> No?

Not if the rest of the codebase is already using

/*
Comment
1
2
3
*/

nor if the above is your company's style guideline.

OP: This is explained in the help at :help format-comments, you can
probably figure it out from that (or at least ask a more specific
question) in less time than it would take someone else to decide to
brush up on that section himself and then hand you the answer.
Basically, you'll have to figure out the format of the 'comments'
option and set it to what you want.

~Matt



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

Reply via email to