How can I line up the lines / arguments of the indent function 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);

=%Being in the appropriate bracket does not work. How to line up as shown above?

+4
source share
1 answer

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

+3
source

Source: https://habr.com/ru/post/1607954/


All Articles