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