[ANN] Vim/Ruby Configuration Files, 2005.10.05

G'day folks,

A new release of Vim/Ruby has just been uploaded to RubyForge.

This includes a few minor bug fixes and is intended as the final release
prior to next week's Vim 6.4 beta.

If there are any serious problems please report them, as soon as
possible, via the project's bug tracker so they can be attended to prior
to the Vim beta release.

Regards,
Doug (for the Vim-Ruby Team)

http://vim-ruby.rubyforge.org/
http://rubyforge.org/projects/vim-ruby/

Doug Kearns a écrit :

G'day folks,

A new release of Vim/Ruby has just been uploaded to RubyForge.

This includes a few minor bug fixes and is intended as the final
release prior to next week's Vim 6.4 beta.

If there are any serious problems please report them, as soon as
possible, via the project's bug tracker so they can be attended to
prior to the Vim beta release.

Regards, Doug (for the Vim-Ruby Team)

http://vim-ruby.rubyforge.org/
http://rubyforge.org/projects/vim-ruby/

Oh joy ! Oh happyness !

Your work is highly appreciated by at least one person (me).

Keep up the good work :slight_smile:

Cheers,
   zimba

Thanks to all for their work. I've just submitted bug 2605:

With vim-ruby-2005.10.07, if I type

puts "you're

then press the space bar, the word 'return' is automatically completed for me:

puts "you'return

-Ryan

···

On Oct 5, 2005, at 8:58 AM, Doug Kearns wrote:

G'day folks,

A new release of Vim/Ruby has just been uploaded to RubyForge.

This includes a few minor bug fixes and is intended as the final release
prior to next week's Vim 6.4 beta.

If there are any serious problems please report them, as soon as
possible, via the project's bug tracker so they can be attended to prior
to the Vim beta release.

Regards,
Doug (for the Vim-Ruby Team)

http://vim-ruby.rubyforge.org/
http://rubyforge.org/projects/vim-ruby/

Damn! This problem is just too close to the wire with 6.4 imminent.
I'm getting

brains hgs 20 %> cat !$
cat short_heredoc.rb
class Example
   def initialize
     print <<EOF
     "Hi there"
EOF
     end
end

brains hgs 21 %>
indented like:
brains hgs 21 %> !v
vim short_heredoc.rb
brains hgs 22 %> cat !$
cat short_heredoc.rb
class Example
   def initialize
     print <<EOF
     "Hi there"
     EOF
   end
end

brains hgs 23 %>
Maybe I have a stale indent file?
         Thank you
         Hugh

···

On Wed, 5 Oct 2005, Doug Kearns wrote:

G'day folks,

A new release of Vim/Ruby has just been uploaded to RubyForge.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Doug Kearns a écrit :

> G'day folks,
>
> A new release of Vim/Ruby has just been uploaded to RubyForge.
>
> This includes a few minor bug fixes and is intended as the final
> release prior to next week's Vim 6.4 beta.
>
> If there are any serious problems please report them, as soon as
> possible, via the project's bug tracker so they can be attended to
> prior to the Vim beta release.
>
> Regards, Doug (for the Vim-Ruby Team)
>
> http://vim-ruby.rubyforge.org/
> http://rubyforge.org/projects/vim-ruby/
>
>
Oh joy ! Oh happyness !

Your work is highly appreciated by at least one person (me).

You're not only :wink:

Keep up the good work :slight_smile:

Here's a little feedback about the ruby "matchit" for classes: The
following code causes problem:

class Test
  def initialize
    @a = { :class => "left", :id => "test"}
  end
end

The "end" for class will match with :class.

Raph

···

On 10/5/05, zimba <zimba.tm@gmail.com> wrote:

Cheers,
   zimba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDRBtYBPd9MK2EeAsRAjKLAKDO4pKNeSGuRvFU5lXPVJ+Riwe7aQCgl8Vv
UTqiX6M941JjM0fTgEVu1zQ=
=Bqyo
-----END PGP SIGNATURE-----

Weird! :wink:

This can't be the result of anything distributed by the vim-ruby
project. Perhaps, you have <SPACE> mapped to something like <C-N> by
some 'funky' completion plugin or similar?

Anyway, let's move the exchange over to the bug tracker and see if we
can work it out.

Regards,
Doug

···

On Mon, Oct 10, 2005 at 08:17:19AM +0900, lists wrote:

Thanks to all for their work. I've just submitted bug 2605:

With vim-ruby-2005.10.07, if I type

puts "you're

then press the space bar, the word 'return' is automatically
completed for me:

puts "you'return

Hugh Sasse wrote:

Damn! This problem is just too close to the wire with 6.4 imminent.
I'm getting

brains hgs 20 %> cat !$
cat short_heredoc.rb
class Example
  def initialize
    print <<EOF
    "Hi there"
EOF
    end
end

brains hgs 21 %>
indented like:
brains hgs 21 %> !v
vim short_heredoc.rb
brains hgs 22 %> cat !$
cat short_heredoc.rb
class Example
  def initialize
    print <<EOF
    "Hi there"
    EOF
  end
end

Huh? The indentation doesn’t indent multiline strings, so if you have

  print <<EOF
    "Blah"
EOF

it should leave everything were you put it. That’s a compromise for how
exceedingly difficult it would be to implement this correctly without
going LALR on it. Perhaps you don’t have syntax on?,
        nikolai

···

--
Nikolai Weibull: now available free of charge at http://bitwi.se/\!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

What do you mean by 'matchit'?

···

On 10/5/05, Raphael Bauduin <rblists@gmail.com> wrote:

On 10/5/05, zimba <zimba.tm@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Doug Kearns a écrit :
>
> > G'day folks,
> >
> > A new release of Vim/Ruby has just been uploaded to RubyForge.
> >
> > This includes a few minor bug fixes and is intended as the final
> > release prior to next week's Vim 6.4 beta.
> >
> > If there are any serious problems please report them, as soon as
> > possible, via the project's bug tracker so they can be attended to
> > prior to the Vim beta release.
> >
> > Regards, Doug (for the Vim-Ruby Team)
> >
> > http://vim-ruby.rubyforge.org/
> > http://rubyforge.org/projects/vim-ruby/
> >
> >
> Oh joy ! Oh happyness !
>
> Your work is highly appreciated by at least one person (me).
>

You're not only :wink:

> Keep up the good work :slight_smile:

Here's a little feedback about the ruby "matchit" for classes: The
following code causes problem:

class Test
  def initialize
    @a = { :class => "left", :id => "test"}
  end
end

The "end" for class will match with :class.

<snip>

Here's a little feedback about the ruby "matchit" for classes: The
following code causes problem:

class Test
  def initialize
    @a = { :class => "left", :id => "test"}
  end
end

The "end" for class will match with :class.

Fixed in CVS - thanks!

Regards,
Doug

···

On Thu, Oct 06, 2005 at 05:19:46AM +0900, Raphael Bauduin wrote:

Huh? The indentation doesn’t indent multiline strings, so if you have

print <<EOF
   "Blah"
EOF

it should leave everything were you put it. That’s a compromise for how

That's what I'd expect.

exceedingly difficult it would be to implement this correctly without
going LALR on it. Perhaps you don’t have syntax on?,

Yes, I have syntax on. I'll poke around and see if I have any stale
indent files. If its working for you then I've botched something at
the unix end this time.

       nikolai

         Thank you.
         Hugh

···

On Tue, 11 Oct 2005, Nikolai Weibull wrote:

<snip>

What do you mean by 'matchit'?

:help %
:help matchit

It allows for user defined items to be matched when using the '%'
motion. For example, with the pattern defined for Ruby, you can move
between 'class' and 'end' or between 'begin', 'rescue' and 'end' etc.

Regards,
Doug

···

On Thu, Oct 06, 2005 at 05:59:20AM +0900, Joe Van Dyk wrote:

Huh? The indentation doesn’t indent multiline strings, so if you have

print <<EOF

   "Blah"

EOF

it should leave everything were you put it. That’s a compromise for how

That's what I'd expect.

exceedingly difficult it would be to implement this correctly without

going LALR on it. Perhaps you don’t have syntax on?,

Yes, I have syntax on. I'll poke around and see if I have any stale

indent files. If its working for you then I've botched something at

the unix end this time.

OK, I've removed an old indent/ruby.vim file (actually mv'ed it to
old_ruby.vim) and now scriptnames gives me
   1: /home/hgs/.vimrc
   2: /usr/local/share/vim/vim63/ftplugin/man.vim
   3: /usr/local/share/vim/vim63/filetype.vim
   4: /usr/local/share/vim/vimfiles/ftdetect/ruby.vim
   5: /usr/local/share/vim/vim63/ftplugin.vim
   6: /usr/local/share/vim/vim63/indent.vim
   7: /usr/local/share/vim/vim63/syntax/syntax.vim
   8: /usr/local/share/vim/vim63/syntax/synload.vim
   9: /usr/local/share/vim/vim63/syntax/syncolor.vim
  10: /home/hgs/.vim/plugin/matchit.vim
  11: /usr/local/share/vim/vim63/plugin/explorer.vim
  12: /usr/local/share/vim/vim63/plugin/gzip.vim
  13: /usr/local/share/vim/vim63/plugin/netrw.vim
  14: /usr/local/share/vim/vim63/plugin/rrhelper.vim
  15: /usr/local/share/vim/vim63/plugin/tohtml.vim
  16: /usr/local/share/vim/vimfiles/ftplugin/ruby.vim
  17: /usr/local/share/vim/vim63/ftplugin/ruby.vim
  18: /usr/local/share/vim/vimfiles/indent/ruby.vim
  19: /usr/local/share/vim/vimfiles/syntax/ruby.vim
  20: /usr/local/share/vim/vim63/syntax/ruby.vim
  21: /home/hgs/.vim/after/syntax/ruby.vim

But I still have the problem. [Incidentally, despite my matchit
being called bouncing on % does nothing.

       nikolai

Any ideas? Thank you,
         Hugh

···

On Tue, 11 Oct 2005, Hugh Sasse wrote:

On Tue, 11 Oct 2005, Nikolai Weibull wrote:

Hugh Sasse wrote:

But I still have the problem. [Incidentally, despite my matchit
being called bouncing on % does nothing.

Exactly how do you indent? (I guess checking your ftplugin/ruby.vim
isn't messing things up would do as well.),
        nikolai

···

--
Nikolai Weibull: now available free of charge at http://bitwi.se/\!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

Hugh Sasse wrote:

But I still have the problem. [Incidentally, despite my matchit
being called bouncing on % does nothing.

Exactly how do you indent? (I guess checking your ftplugin/ruby.vim

gg=G

isn't messing things up would do as well.),

I'll have a look. Thank you.

       nikolai

         Hugh

···

On Wed, 12 Oct 2005, Nikolai Weibull wrote: