Skip to content

Commit aaf5b97

Browse files
committed
Indent private/protected while typing
1 parent b5ead62 commit aaf5b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/ruby.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ setlocal nosmartindent
2323
" Now, set up our indentation expression and keys that trigger it.
2424
setlocal indentexpr=GetRubyIndent(v:lnum)
2525
setlocal indentkeys=0{,0},0),0],!^F,o,O,e
26-
setlocal indentkeys+==end,=else,=elsif,=when,=ensure,=rescue,==begin,==end
26+
setlocal indentkeys+==end,=else,=elsif,=when,=ensure,=rescue,==begin,==end,=private,=protected
2727

2828
" Only define the function once.
2929
if exists("*GetRubyIndent")

0 commit comments

Comments
 (0)