Elseif?

I find that vim does better brace matching with {}.
.. that is -- unless someone has a vim extension to track do..end...

···

Since Matz is the creator and his opinion is not to add elseif, I'd
rather say, we keep it like that. I agree with the view that alias is
not a good thing. Because it makes READING a program harder, when you
I first encounter do |var| ... end, I didn't realize {|var|... } is also
ok, but it seems straight forward...

I find that vim does better brace matching with {}.
… that is – unless someone has a vim extension to track do…end…

Someone might, but I’ve long since given up on using {} just for the sake of
Vim. I use { … } when the block is like a function and do … end when the
block is like a command.

My do … end blocks are usually small enough (due to Ruby’s power and my
method-factoring) that manual navigation is sufficient.

Gavin

···

From: “Ted” ted@datacomm.com

I missed that until I started using some macros available. They’re
sometimes slow, but when I type “def”, vim automagically completes
it (e.g., “def endk$a”). !init expands to an initializer,
etc.

-austin
– Austin Ziegler, austin@halostatue.ca on 2002.12.05 at 20.45.15

···

On Fri, 6 Dec 2002 09:08:03 +0900, Ted wrote:

I find that vim does better brace matching with {}. … that is –
unless someone has a vim extension to track do…end…

setting foldmethod=syntax gives a do/end matching of sorts.

-a

···

On Fri, 6 Dec 2002, Gavin Sinclair wrote:

From: “Ted” ted@datacomm.com

I find that vim does better brace matching with {}.
… that is – unless someone has a vim extension to track do…end…

Someone might, but I’ve long since given up on using {} just for the sake of
Vim. I use { … } when the block is like a function and do … end when the
block is like a command.

My do … end blocks are usually small enough (due to Ruby’s power and my
method-factoring) that manual navigation is sufficient.

Gavin

====================================

Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ahoward@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================