Forum: Ruby VIM + indentation/highlightning for ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cdb3ec23d3ee6366dcffe49150a0a9e9?d=identicon&s=25 Meino Christian Cramer (Guest)
on 2006-04-19 17:49
(Received via mailing list)
Hi,

 I started learning vim and I tried the indentation/highlightning for
 ruby.

 Either I did something very wrong or it does not work that nice.
 (I used the newest vim (version 6.4.10)).

 Is there a patched/improved/tunned veryion of the according vim
 files, which works better ?

 Thanks a lot in adnance for any helpful reply !

 Keep hacking!
 mcc
1889d44478574daa962c5ea19d3307bb?d=identicon&s=25 Pierre Barbier de Reuille (Guest)
on 2006-04-19 18:11
(Received via mailing list)
Meino Christian Cramer a écrit :

>
> Thanks a lot in adnance for any helpful reply !
>
> Keep hacking!
> mcc
>
>
For vim and ruby together :

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

Nice scripts :)

Pierre
Cdb3ec23d3ee6366dcffe49150a0a9e9?d=identicon&s=25 Meino Christian Cramer (Guest)
on 2006-04-19 18:30
(Received via mailing list)
From: Pierre Barbier de Reuille
<Pierre.Barbier_de_Reuille@sophia.inria.fr>
Subject: Re: VIM + indentation/highlightning for ruby
Date: Thu, 20 Apr 2006 01:10:26 +0900

> > Is there a patched/improved/tunned veryion of the according vim
> http://vim-ruby.rubyforge.org/
>
> Nice scripts :)
>
> Pierre
>
>

Hmmm....

 I go there.
 The newest version I found is of 2005.10.07. The INSTALL file
 recommended tu use vim 6.3.x and there are tips for using the
 files for 6.2.x. Currently 6.4.10 is the latest stable version of
 vim.

 Thats all not that important. But the indentation....:

        #!/usr/bin/ruby
        require 'crypt/ISAAC'
        require 'enumerator'

        rng = Crypt::ISAAC.new

        alpha=("A".."Z").to_a

        1000000.times {
            12.times {
            5.times {
            a=rng.rand(26)
            print alpha[a]
        }
        print " "
        }
        print "\n"


 Not that, what I would exspect...

 Any other ideas ?
 (I installed the files according to the INSTALL file in my
 $HOME/.vim/. ...

 Confused,
 mcc
E34b5cae57e0dd170114dba444e37852?d=identicon&s=25 Logan Capaldo (Guest)
on 2006-04-19 20:16
(Received via mailing list)
On Apr 19, 2006, at 12:29 PM, Meino Christian Cramer wrote:

>         1000000.times {
>  Not that, what I would exspect...
>
>  Any other ideas ?

Yeah, blocks confuse vim's indentation sometimes. I especially  enjoy
it when it does things like

some_long_identifier.each do |args|
    blah blah
                                                   end

For the most part I just suck it up and change those things by hand.
This topic is locked and can not be replied to.