What cinoptions can I set for getting the block below indented as shown?
f(int *p)
: a(p)
, b(0)
{
std::cerr << blah
<< foo << std::endl;
}
The closest I've got was to:
f(int* p)
: a(p)
, b(0)
{
std::cerr << blah
<< foo << std::endl;
}
That's almost what I want, only that everything after :
is indented :)
For that, I used: set cino=i0,+2
How about i0,+2,t0
? (tN
is for "a function return type declaration").
That worked for me, but, the vims I tried (7.0 and 7.3) did two different things, neither the same as yours, with i0,+2
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With