[Insight-developers] ITK and VIM (Was: Anyone got Emacs config for ITK-standard
indentation?)
Andy Cedilnik
andy.cedilnik@kitware.com
01 May 2003 07:53:47 -0400
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!