From: Michael Neumann Date: 2003-06-14T23:51:36+09:00 Subject: Re: I need a code beautifier or formatter On Sat, Jun 14, 2003 at 11:43:16PM +0900, ahoward wrote: > On Sat, 14 Jun 2003, Michael Neumann wrote: > > > On Sat, Jun 14, 2003 at 10:01:36PM +0900, Joao Pedrosa wrote: > > > Hello, > > > > > > I have some source code that is terribly formatted. It needs some good > > > indentation at least. But I am too lazy to do it all by hand. > > > > > > Does anyone know a tool to do the job ? > > > > Vim can format Ruby code (visual select then press '='). > > for me this simply lines eveything up in a column - could you post the > relevant bits of your .vimrc/.gvimrc or forward them to me directly? Nothing special in there, except the usual "syn on". Make sure that the file is recognized as a Ruby source file. If it does not end with .rb then ":setf ruby" will do it. Hope this helps. Regards, Michael