Sunday, October 31, 2010

Re: A new style of c++ code indenting

On Sun, Oct 31, 2010 at 05:36:41PM +0800, Aaron Lewis wrote:
> Hi,
> For different types of variables in c++ , i would prefer such indentings:
>
> const QString mystr;
> const QSystemTrayIcon *icon;

There are 2 plugins for doing this:

DrChip's Align: http://www.vim.org/scripts/script.php?script_id=294

godlygeek's tabular: http://github.com/godlygeek/tabular

Most of the people at #vim prefer godlygeek's. I haven't used any of
them, so I can't say anything about them.

--
Javier Rojas

GPG Key ID: 0x24E00D68

No comments:

Post a Comment