Skip to content

Commit

Permalink
Indent private/protected while typing
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Oct 22, 2013
1 parent b5ead62 commit aaf5b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indent/ruby.vim
Expand Up @@ -23,7 +23,7 @@ setlocal nosmartindent
" Now, set up our indentation expression and keys that trigger it. " Now, set up our indentation expression and keys that trigger it.
setlocal indentexpr=GetRubyIndent(v:lnum) setlocal indentexpr=GetRubyIndent(v:lnum)
setlocal indentkeys=0{,0},0),0],!^F,o,O,e 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. " Only define the function once.
if exists("*GetRubyIndent") if exists("*GetRubyIndent")
Expand Down

0 comments on commit aaf5b97

Please sign in to comment.