From: Joao Pedrosa Date: 2003-06-15T00:24:58+09:00 Subject: Re: I need a code beautifier or formatter Hi, Em Sáb, 2003-06-14 às 11:54, Mauricio Fernández escreveu: > 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? > > > > this sounds like a great feature... > > http://www.rubygarden.org/ruby?VimRubySupport Nice link. When I added the lacking bits to .vimrc it began formatting ok. But it had some problem with ----- snip def listjoin(channels) channels.each do |c|^M s = "join ##{c}"^M @irconnector.sendToStatus s^M @irconnector.sendToServer s^M end^M end^M ----- snip But now it is pretty usable. Thanks all, Joao