From: Erik Hollensbe Date: 2007-06-01T15:00:15+09:00 Subject: Re: Why not adopt "Python Style" indentation for Ruby? On 2007-05-20 20:45:59 -0700, gga said: > On May 18, 3:50 pm, "Austin Ziegler" wrote: >> On 5/18/07, gga 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? % works, but I'm using a ruby-matchit plugin I found on vim.org. I'm not sure if this is the same as the dist that a few guys have been working on at rubyforge.