I'm looking for a script which does the indentation as below for a C code
Ex:
void(int *q, int* p)
{
int x,y,z;
float *f;
if(q!=NULL)
q=q->next;
}
to:
void (int * q, int * p)
{
int x, y, z;
float * f;
if (q != NULL)
q = q->next;
}
If you can see the change, I have added spaces between braces, commas
and added proper alignment.
I'm looking for a script to perform as above. Can any one please let
me know whether there are any existing scripts or commands to do this.
Thanks in advance.
--
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
No comments:
Post a Comment