Hi,
When I'm writing C++ code, if I have a long comma-separated list of
items (like initializer parameters or function arguments) I like to lay
them out so that the comma is the first non-whitespace character on the
line, like so:
foo( param1
, param2
, param3
, param4
, param5
);
This is a technique I picked up many years ago, and it seems to be
becoming more common, certainly in the programming groups I've worked
with.
The problem is, I've not been able to work out how to get this to
layout properly with VIM.
I have the following two lines in my .vimrc:
set cindent
set cinoptions=g0,+0,t0,(0
But using these I get the following layout:
foo( param1
, param2
, param3
, param4
, param5
);
What I'd like is to get the commas lined up below the '('. A similar
thing happens for initializer lists - the commas line up below the
start of the first identifier, not the ':' that introduces the
initializer list.
Is this possible to do with current Vim? If not, can I put in a request
to have it put on the TODO list?
Thanks for your attention
Spencer
--
<<< Eagles may soar, but weasels don't get sucked into jet engines >>>
7:06am up 79 days 15:45, 15 users, load average: 0.08, 0.07, 0.02
Registered Linux User #232457 | LFS ID 11703