On Aug 10, 12:30 pm, visiondude <[email protected]> wrote:
> 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
>
> to your .vimrc file. Now you can code formatting the same way.
>
> http://astyle.sourceforge.net/
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.
For example, I want a space before "sep". But gvim couldn't give me
such style. Do you know what I shall do?
paste("XY", 1:10,sep="")
PS: I have the following code in my .vimrc
"full file indent
fun BenIndent()
let oldLine=line('.')
normal gg=G
execute ':' . oldLine
endfun
map -- :call BenIndent()<CR>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---