Browse files

Update indentkeys to support non-outdented 'private' or 'protected'.

  • Loading branch information...
1 parent aaf5b97 commit a7940705de35db73122288ad2e324ea7d421e4ac @drn drn committed Oct 24, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 indent/ruby.vim
View
3 indent/ruby.vim
@@ -23,7 +23,8 @@ 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,=private,=protected
+setlocal indentkeys+==end,=else,=elsif,=when,=ensure,=rescue,==begin,==end
+setlocal indentkeys+==private,=protected,:=private,:=protected
" Only define the function once.
if exists("*GetRubyIndent")

0 comments on commit a794070

Please sign in to comment.