Friday, August 21, 2009

Re: R indentation

On Aug 21, 12:15 am, Tom <micat...@gmail.com> wrote:
> > The indented result of the 'whatcdf.R' is like the following, which is
> > obviously not correct. 'for' statement should be aligned with
> > 'library'; 'print' should be aligned with 'pname' in the 3rd line.
>
> > library(makecdfenv)
> >   for (f in list.celfiles()) {
> >     pname=cleancdfname(whatcdf(f))
> >       print(pname)
> >   }
>
> Here, when I type gg=G, it looks like:
>
> library(makecdfenv)
> for (f in list.celfiles()) {
>     pname=cleancdfname(whatcdf(f))
>     print(pname)
>
> }
>
> What are your values of the indentation-related options?

I don't specify any options except that I copy your vim code into
'~/.vim/indent/r.vim'. Do you know how I may find what is causing the
problem?

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

No comments: