diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2022-04-18 12:08:27 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2022-04-18 12:08:27 +0200 |
commit | db7bb8ba22f5798bf3abe9f786bc6e6d002725f8 (patch) | |
tree | c9d2fd8bead22a93f2c0eb0bd8abe14efe32f509 /indent/ruby.vim | |
parent | aae85fe8c2a5878aee89ff8025306f3142962b5f (diff) | |
download | vim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.tar.gz vim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.zip |
Update
Diffstat (limited to 'indent/ruby.vim')
-rw-r--r-- | indent/ruby.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/indent/ruby.vim b/indent/ruby.vim index 0a7cfae6..e08a38cf 100644 --- a/indent/ruby.vim +++ b/indent/ruby.vim @@ -43,9 +43,11 @@ 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,=in,=ensure,=rescue,==begin,==end +setlocal indentkeys+==end,=else,=elsif,=when,=in\ ,=ensure,=rescue,==begin,==end setlocal indentkeys+==private,=protected,=public +let b:undo_indent = "setlocal indentexpr< indentkeys< smartindent<" + " Only define the function once. if exists("*GetRubyIndent") finish |