Just moving over to vim at the moment. In textmate I could format code by hitting cmd-alt-[. How do I achieve the same in vim?
See the answer below for the command. I found I also need the following in my vimrc so that vim new how to autoindent ruby.
if has("autocmd")
filetype indent on
endif