views:

292

answers:

2

I recently read this article related to indenting source files in Vim . However , I would like to be able to custom indent some of them . Is there a way to specify which binary runs when I press = ?

+5  A: 

From the help:

={motion}       Filter {motion} lines through the external program
                given with the 'equalprg' option.  When the 'equalprg'
                option is empty (this is the default), use the
                internal formatting function |C-indenting|.  But when
                'indentexpr' is not empty, it will be used instead
                |indent-expression|.

It looks like setting the equalprg option is what you want.

Greg Hewgill
+3  A: 

You can set the equalprg-option. (see :he = for more).

WMR