Identing ruby in vim

I’m new to ruby and vim. Is it possible to ask vim to ident a
piece
of ruby code? I know it does syntax highlighting, so, I suppose
it may
be able to format the code.

The best way is to include the following in your .vimrc:

filetype plugin on "Turn ftplugins on
filetype indent on "Turn ftindent on

My VIM won’t eat those commands (version 6.1.213) …

Huh? Do you mean that vim isn’t responding to those commands? It
clearly is, if ftplugins are working for you.

It works fine for me, too (version 6.1 on Fink/OS X here at work).

-Brian W

···

On Wed, Nov 20, 2002 at 12:07:25AM +0900, Morten Liebach wrote:

On 2002-11-19 00:36:25 +0900, Michael Brailsford wrote:


Brian Wisti (brian at coolnamehere dot com)
http://coolnamehere.com/