vim indent: align function arguments

Viewed 4433

The default alignment in vim (using "=") aligns my code as:

void my_loooong_function (int arg1,
        int arg2,
        int arg3
        )

However, I wish to align with all arguments starting at same line, as:

void my_loooong_function (int arg1,
                          int arg2,
                          int arg3
                         )

How can this be done?

2 Answers
Related