From: Daniel G. <da...@fp...> - 2003-07-24 01:10:35
|
On Wed, 2003-07-23 at 17:44, William Rose wrote: > On a style note, I've been using what I remember the new style to be -- > e.g. tabs for indent, no spaces, braces on new lines. One thing to > check: > > If I want to line things up, e.g. > SomeLengthKernelStruct_s* psKernel; > int nError; > ^^^^^^^^^^^^^^^^^^^^^^^^ > or: > > kerndbg( KERN_FATAL, > "This line was so long it would have made vim cry.\n" ); > ^^^^^^^^^ > > I have to use spaces because I don't want the position to move when > people change the indent (don't I?). Well, you would but why? Personally, I've been removing things like that, and replacing them with strict indenting. I personally hate things like that. :) > > If so, anyone got any clues on how to make Vim do this? Dan G -- I > should have looked at your indent script, but I'm lazy ;-) Does it do > this? Vim will do the second thing. It has the option to line up the continuation line with the enclosing open paren. I don't remember if the indent script does this. The first thing isn't doable by anything, as far as I know. You can get indent to line up all variable names in a specific column, but not based on the furthest left position, which is what you want. -- Daniel Gryniewicz <da...@fp...> |