Skip to content
Browse files

Indent private/protected while typing

  • Loading branch information...
1 parent b5ead62 commit aaf5b97d96103cb1b53ab8cecd85f8e0d6a24eec @AndrewRadev AndrewRadev committed Oct 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 indent/ruby.vim
2 indent/ruby.vim
@@ -23,7 +23,7 @@ setlocal nosmartindent
" Now, set up our indentation expression and keys that trigger it.
setlocal indentexpr=GetRubyIndent(v:lnum)
setlocal indentkeys=0{,0},0),0],!^F,o,O,e
-setlocal indentkeys+==end,=else,=elsif,=when,=ensure,=rescue,==begin,==end
+setlocal indentkeys+==end,=else,=elsif,=when,=ensure,=rescue,==begin,==end,=private,=protected
" Only define the function once.
if exists("*GetRubyIndent")

0 comments on commit aaf5b97

Please sign in to comment.
Something went wrong with that request. Please try again.