On Fri, 2009-05-01 at 11:33 -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:
> /*
> */.
was wondering if anyone could help me with automating this...
My companies standard commenting format.
comment left aligned, not indented
begin and end comment lines asterisk padded out to column 79
is there any way to dynamically calculate and populate the begin and end
comment lines? either via the comments format parameter or a function?
/******************************************************************************
*
* Function : main
* Description : Program entry point and top-level program breakdown.
*
******************************************************************************/
int
main(int argc, char **argv)
{
int exitec = 0;
/**************************************************************************
* enable/disable signals
**************************************************************************/
if ( ! exitec )
{
if (signal(SIGINT, (void(*)(int))mySIGINTHandler) == SIG_ERR)
{
/*****************************************************************
* just a dummy comment to illustrate standard
*****************************************************************/
fprintf(stderr, "ERROR: %s: %s", argv[0], PROGERR001);
fprintf(stderr, "\n");
exitec = 1;
}
}
....
thanks,
reid
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---