[FAQ] Indenting Ruby in Vim

Q. How can I get Vim to indent Ruby code?

A. Put these lines in your .vimrc

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

See http://www.rubygarden.org/ruby?VimRubySupport for
more info.

···


Gavin Sinclair Software Engineer
Sydney, Australia Soyabean Software Pty Ltd