On Tue, Aug 11, 2009 at 8:53 AM, Peng Yu<[email protected]> wrote:
> I add "set equalprg=astyle" to my .vimrc and installed astyle. I open
> an R file with gvim and type '--'. But the style is still not what I
> want.

It sounds like you didn't configure astyle. You can look at some of
the options at:

http://astyle.sourceforge.net/astyle.html#_Formatting_Options

> Well, my solution doesn't use a plugin for that purpose. Code
> formatting is done by an external tool named astyle.
> Install and configue astyle, then add a line
>
> set equalprg=astyle

Doesn't this break just using == on one line? For me it messes up the
indentation. I think it makes astyle treat the single line as the
entire file. Is there a way to pass astyle the whole line, but only
apply the changes to the current line?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to