From: Diego Cano Lagneaux Date: 2006-02-11T03:27:21+09:00 Subject: Re: How are indentor and beautifier projects going, if any? En Fri, 10 Feb 2006 19:15:10 +0100, Edward Faulkner escribi�: > On Sat, Feb 11, 2006 at 03:05:26AM +0900, Diego Cano Lagneaux wrote: >> The other day, I stumbed across the need to reindent some ruby code. > > Any worthwhile editor should have a Ruby mode that handles indenting > for you. > > (In emacs, use M-x indent-region) > > regards, > Ed I am aware that it should (I use Vim, by the way), but it doesn't. I have all imaginable variables in my .vimrc (indent on, smartindent, etc.), but all I have is syntax colours, no autoindentation. It's not a big problem for the code I write now, since I am quite careful with correct indentation and all; but for old messy code, it could help me a lot to have a auto-reindenter, and even better, a code beautifier limiting code to 80 columns, uniformising spaces after commas and all this. Thanks, Diego