[Insight-developers] ITK and VIM (Was: Anyone got Emacs config for ITK-standard indentation?)

Hans Johnson hans-johnson@uiowa.edu
Thu, 01 May 2003 07:42:10 -0500


Andy,

Thanks.  Your Cmake vim configurations are also really nice.

I have tried to put the core of your message below on the FAQ site under 
Platform-Specific questions, but I don't know the password for the FAQ.

Hopefully this (along with the emacs binding information) will make it 
to the FAQ page.

Regards,
Hans

Andy Cedilnik wrote:
> Hi Norman,
> 
> Looks like all you guys are emacs users. That said, for all of you who
> use VIM, here are just couple of things:
> 
> set tabstop=2       " Tabs are two characters
> set shiftwidth=2    " Indents are two charactes too
> set expandtab       " Do not use tabs
> set matchpairs+=<:> " To mach arguments of templates
> 
> set cinoptions={1s,:0,l1,g0,c0,(0,(s,m1 " ITK/VTK style indenting
> 
> Then you can also use CMake indentation and syntax file which are
> available on www.vim.org.
> 
> 			Andy
> 
> On Wed, 2003-04-30 at 10:09, Kent Williams wrote:
> 
>>So my latest checkins were criticized for indentation style; sorry!  My 
>>problem is that I either have to turn off auto-indent in Emacs, or trick it 
>>into enforcing the ITK coding standards -- in particular, Emacs wants to do 
>>this:
>>
>>	if ( this )
>>		{
>>			Do That;
>>		}
>>
>>And ITK wants:
>>
>>	if ( this )
>>		{
>>		Do That;
>>		}
>>
>>I also gather from Bill's reformatting that there's no indent inside a 
>>namespace. Emacs doesn't want to do that either.
>>
>>I know that C++-mode in Emacs is configurable, and I'm willing to slog into it 
>>and figure it out, but if someone else has already done this, please share! 
>>Thanks!
> 
> 
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-developers

-- 
===================================================================
Hans J. Johnson                              W294 GH
hans-johnson@uiowa.edu                       Dept. of Psychiatry
http://www.psychiatry.uiowa.edu/~hjohnson    The University of Iowa
(319) 353-8587                               Iowa City, IA 52242
===================================================================