On 5/20/07, gga <GGarramuno / aol.com> wrote:
> On May 18, 3:50 pm, "Austin Ziegler" <halosta... / gmail.com> wrote:
> > On 5/18/07, gga <GGarram... / aol.com> wrote:
> > > No, it is just the other way around.  Languages that use curly braces
> > > for indentation like C, Perl, etc. are EASY to work with once code is
> > > not properly factored and it extends outside a single page.  Ruby is
> > > easy only when you use {, not so much when you use do/end,
> > > unfortunately, as most editors know nothing about it.  Some good
> > > editors (emacs, for example), can tell you the context you are in the
> > > modeline with curly braces, but not so with other block indentation
> > > types.  And most editors can easily find matching braces.  No editor I
> > > am aware knows how to match indentation yet or do/end contexts (not
> > > that it could not be coded, thou).
> > Vim does this just fine.
> Really?  Not the vim I'm using (cream).  It matches parentheses/
> brackets like most editors, but it does nothing to hilight matching do/
> end or def/end blocks.  Its status line also tells me nothing about
> what function or class I'm in either.  Worse, if I close a bracket,
> and the opening of it is outside the "page", it does not tell me what
> the opening statement was.  So... no, I'd say it definitively fails
> and is worse than emacs.

> Or perhaps there's a setting I missed?

I don't use the cream settings. I use vim with the Ruby settings
available on RubyForge. Now, automatic highlighting isn't present
(e.g., the same way you get with {}), but you *can* hit "%" to jump
between matching pairs. It isn't for everyone, either, but the folding
available with vim does more for me being certain of matched pairs
than anything else (if it doesn't fold properly, it isn't likely to
compile properly).

I have TextMate (but don't use it), and I'm pretty sure it can do the
same. I've heard good things about Kate from Linux users, too.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca