Skip to main content
1 of 2
valadil
  • 143
  • 4

How do I control how vim indents ruby blocks?

When I start a ruby block in the middle of a line, the next line is indented deeper than I'd like. It's indented from the start of the block, not the start of the line.

That explanation was terrible, so here's a picture with a contrived example.

Indentation

I would like line 4 to be indented one level deeper than 3. 5 should match 3. Same logic applies to the case statement below

valadil
  • 143
  • 4