views:

270

answers:

2

I am using Vim for Ruby development and I have some annoying problem. When I type Ruby hashes, I see the wrong indentation:

{
  { #Here it is.
}
}

How it is possible to resolve this?

I am using akitaonrails vimfiles.

+2  A: 

Have you tried with a hash that's actually legal ruby code? The way you type it in your example is syntactically invalid and so you don't get any indentation.

pmh
A: 

Yes, I tried. I found the solution - alternative indent/ruby.vim - http://www.vim.org/scripts/script.php?script%5Fid=2742

SMiX