[ANN] Vim/Ruby Configuration Files, 2005.10.05

D

Doug Kearns

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/
 
Z

zimba

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

Doug Kearns a =E9crit :
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 :)

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

iD8DBQFDRBtYBPd9MK2EeAsRAjKLAKDO4pKNeSGuRvFU5lXPVJ+Riwe7aQCgl8Vv
UTqiX6M941JjM0fTgEVu1zQ=3D
=3DBqyo
-----END PGP SIGNATURE-----
 
R

Raphael Bauduin

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

Doug Kearns a =E9crit :

Oh joy ! Oh happyness !

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

You're not only ;-)
Keep up the good work :)

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


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

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

Raph
 
J

Joe Van Dyk

You're not only ;-)


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


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

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

What do you mean by 'matchit'?
 
D

Doug Kearns

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

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
 
D

Doug Kearns

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

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
 
L

lists

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
 
D

Doug Kearns

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

Weird! ;-)

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
 
H

Hugh Sasse

G'day folks,

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

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
 
N

Nikolai Weibull

Hugh said:
Damn! This problem is just too close to the wire with 6.4 imminent.
I'm getting
=20
brains hgs 20 %> cat !$
cat short_heredoc.rb
class Example
def initialize
print <<EOF
"Hi there"
EOF
end
end
=20
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=E2=80=99t indent multiline strings, so if you=
have

print <<EOF
"Blah"
EOF

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

--=20
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);}
 
H

Hugh Sasse

---559023410-992951867-1129041065=:6679
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-992951867-1129041065=:6679"

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-992951867-1129041065=:6679
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

Huh? The indentation doesn=E2=80=99t indent multiline strings, so if you= have

print <<EOF
"Blah"
EOF

it should leave everything were you put it. That=E2=80=99s 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=E2=80=99t 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.
Thank you.
Hugh
---559023410-992951867-1129041065=:6679--
---559023410-992951867-1129041065=:6679--
 
H

Hugh Sasse

---559023410-1691952160-1129041925=:6679
Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1691952160-1129041925=:6679"

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1691952160-1129041925=:6679
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed
Content-Transfer-Encoding: QUOTED-PRINTABLE

u have

for how


That's what I'd expect.





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.
Any ideas? Thank you,
Hugh
---559023410-1691952160-1129041925=:6679--
---559023410-1691952160-1129041925=:6679--
 
N

Nikolai Weibull

Hugh said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top