[andrew@walrond.org: Re: Folding editor for ruby code browsing]

Gavin Sinclair gsinclair at soyabean.com.au
Tue May 3 04:11:19 EDT 2005

Here it is inline, after gg=G in my vim:

def build()
  dir = unpack()
  dir.cd { globaledit('/lib64','/lib') } if $host.generic=='x86_64'

  bash("../#{dir}/configure #{stdconfig} "+
       "--disable-profile "+
         "--enable-add-ons=#{attribute('threads')} "+
       "--with-tls "+
         (attribute('threads')=='linuxthreads' ? '--without-__thread ' : '')+
         "--enable-kernel=#{attribute('oldest-kernel')} "+
       "--with-headers=#{path($root,$kernel_headers.incdir)} "+
       "--without-selinux "+
         "--without-cvs "+
         "--build=#{$host.full} "+
       "--host=#{$host.full} "
      bash("make -j#{$mj}")

Just reproducing it to acknowledge that I've seen the problem.  Got no
idea how to fix it :)

My advice to Andrew (cc'ed) is to write the code another way (e.g.
here-doc).  Reason being: I don't think any significant improvement is
going to be made to Vim's ruby indentation until such time as someone
writes an Ruby code indenter in Ruby.  Then the indenting logic can be
more easily tested and improved, and reimplemented in other languages
(Vim, elisp, textmate, ...).

If I could do anything to improve the Vim-based code as it stands, I
would.  Nikolai did a great job in record time to get it where it is,
but the peculiarities of Ruby require a real programming language :)


More information about the vim-ruby-devel mailing list