vim-ruby/vim-ruby — pull request #177 by darrenli (2013-10-12 06:43:27+00:00)
Title: Proposal - optional indent after private / protected?

Hey all,

I know there's an open debate about this indentation style, but what does everyone think about having an optional configuration for indenting after single line private / protected statements?

It's listed as a code convention in the [rails guide](http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions) and is used by the team I work on as the expected style.

The attached changes are what I've monkey-patched in order to get this indentation working, but would someone more fluent in viml / writing regex be able to implement a better solution? What this breaks is when a `private :method` declaration is used.

It'd be great if I could just add `let g:vim_ruby_indent_private_protected = 1` to my .vimrc to toggle this behavior.

Cheers,
D