[vtkusers] cpp syntax indentation with vim
Darren Weber
darren.weber.lists at gmail.com
Thu Jan 29 19:55:04 EST 2009
I'm using vim to work on a VTK class. Is there an easy way to
configure vim so it will do automatic, smart indentation according to
the style guide for VTK coding?
I've put this at the start of my .h and .cxx files:
// -*- vim:fenc=utf-8:ft=cpp:et:sw=2:ts=2:sts=2
This only helps with indentation, not style details to get:
if (expression)
{
statements;
}
Whatever it is that I have currently configured, it gives me this:
if (expression)
{
statements;
}
etc.
Thanks, Darren
More information about the vtkusers
mailing list