SanderC
SanderC

Reputation: 143

How can I line up/indent function arguments up to (

I want to do this in VIM:

// before
int DoStuffToSometing(int stuff,
        char action,
        int something);


// after
int DoStuffToSometing(int stuff,
                      char action,
                      int someting);

=% while being on the matching parenthesis, doesn't work. How to line up things as shown above?

Upvotes: 4

Views: 188

Answers (1)

xdazz
xdazz

Reputation: 160953

Use :set cinoptions+=(0 then do the select the content and press =.

Upvotes: 3

Related Questions