Little indenting bug in Vim's ruby.vim (version 2005-10-07)

Discussion in 'Ruby' started by Vincent Foley, Apr 5, 2006.

  1. Hi,

    A few months ago, I posted a message in which I said I found a bug in
    Vim's Ruby indenting. I tried the version from October 7th today, and
    the bug I had reported has been fixed. However, I uncovered a new one:
    blocks in arrays.

    The following code (indented in Emacs)
    arr = [
    MyClass.new { |x|
    x.some_method
    },

    MyClass.new { |x|
    x.some_other_method
    }
    ]

    Is indented like this in vim:
    arr = [
    MyClass.new { |x|
    x.some_method
    },

    MyClass.new { |x|
    x.some_other_method
    }
    ]


    I know full well that vim script is a horrible language and that
    getting indenting right must be a very hard task, but I hope someone
    with enough knowledge of Vim can fix this issue.
    Vincent Foley, Apr 5, 2006
    #1
    1. Advertising

  2. Vincent Foley wrote:

    > A few months ago, I posted a message in which I said I found a bug in
    > Vim's Ruby indenting. I tried the version from October 7th today, and
    > the bug I had reported has been fixed. However, I uncovered a new one:
    > blocks in arrays.


    Hi Vince,

    I can't promise anything, but I passed the report on to the vim-ruby
    mailing list. Sorry to say we usually have a slow turnaround.

    Cheers,
    Gavin
    Gavin Sinclair, Apr 9, 2006
    #2
    1. Advertising

  3. Gavin Sinclair <> wrote:
    >
    > Vincent Foley wrote:
    >
    > > A few months ago, I posted a message in which I said I found a bug in
    > > Vim's Ruby indenting. I tried the version from October 7th today, and
    > > the bug I had reported has been fixed. However, I uncovered a new one:
    > > blocks in arrays.

    >
    > Hi Vince,
    >
    > I can't promise anything, but I passed the report on to the vim-ruby
    > mailing list. Sorry to say we usually have a slow turnaround.


    What's the recommended place to file a bug? I entered one into the
    rubyforge tracker, but if the mailing list is preferred i'll refile it.

    martin
    Martin DeMello, Apr 9, 2006
    #3
  4. No problem, like I said, I know how sucky vim script is, so I can
    understand not wanting to fix the bug right away.
    Vincent Foley, Apr 10, 2006
    #4
  5. Martin DeMello wrote:

    > > I can't promise anything, but I passed the report on to the vim-ruby
    > > mailing list. Sorry to say we usually have a slow turnaround.

    >
    > What's the recommended place to file a bug? I entered one into the
    > rubyforge tracker, but if the mailing list is preferred i'll refile it.


    I'd say the tracker is preferred. No need to make people join a
    mailing list just to file a bug.

    I have no opposition to problems simply being discussed in this forum
    either. Sometimes it happens that people don't have the latest
    version.

    Thanks for filing,
    Gavin
    Gavin Sinclair, Apr 10, 2006
    #5
  6. Martin DeMello wrote:

    > > I can't promise anything, but I passed the report on to the vim-ruby
    > > mailing list. Sorry to say we usually have a slow turnaround.

    >
    > What's the recommended place to file a bug? I entered one into the
    > rubyforge tracker, but if the mailing list is preferred i'll refile it.


    I'd say the tracker is preferred. No need to make people join a
    mailing list just to file a bug.

    I have no opposition to problems simply being discussed in this forum
    either. Sometimes it happens that people don't have the latest
    version.

    Thanks for filing,
    Gavin
    Gavin Sinclair, Apr 10, 2006
    #6
  7. Crap. Sorry about the double post!

    Gavin
    Gavin Sinclair, Apr 10, 2006
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. infixum
    Replies:
    3
    Views:
    425
    Robert Kern
    Jan 5, 2008
  2. V Green
    Replies:
    0
    Views:
    840
    V Green
    Feb 5, 2008
  3. PA Bear [MS MVP]
    Replies:
    0
    Views:
    952
    PA Bear [MS MVP]
    Feb 5, 2008
  4. Guoliang Cao

    vim 6.2 + vim-ruby don't work

    Guoliang Cao, Oct 16, 2003, in forum: Ruby
    Replies:
    1
    Views:
    153
    Brett H. Williams
    Oct 16, 2003
  5. Vincent Foley

    Vim's Ruby indenting

    Vincent Foley, May 22, 2005, in forum: Ruby
    Replies:
    16
    Views:
    476
    Nikolai Weibull
    May 24, 2005
Loading...

Share This Page