File tree Expand file tree Collapse file tree 2 files changed +48
-46
lines changed Expand file tree Collapse file tree 2 files changed +48
-46
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ There are a number of options to the Ruby syntax highlighting.
662. Whitespace errors | ruby_space_errors |
773. Folds | ruby_fold |
884. Reducing expensive operations | ruby_no_expensive | | ruby_minlines |
9- 5. Reducing expensive operations | ruby_indent_access_modifier_style |
109
1110
12111. Ruby operators *ruby_operators*
@@ -62,47 +61,4 @@ the "ruby_minlines" variable to a value larger than 50: >
6261Ideally, this value should be a number of lines large enough to embrace your
6362largest class or module.
6463
65- 5. Access modifier indentation *ruby_indent_access_modifier_style*
66-
67- Different access modifier indentation styles can be used by setting: >
68-
69- :let g:ruby_indent_access_modifier_style
70- :let g:ruby_indent_access_modifier_style = 'indent'
71- :let g:ruby_indent_access_modifier_style = 'outdent'
72- <
73- By default, the normal access modifier style is used.
74- Access modifier style 'normal' :
75- class Indent
76- private :method
77- protected :method
78- private
79- def method; end
80- protected
81- def method; end
82- public
83- def method; end
84- end
85- Access modifier style 'indent' :
86- class Indent
87- private :method
88- protected :method
89- private
90- def method; end
91- protected
92- def method; end
93- public
94- def method; end
95- end
96- Access modifier style 'outdent' :
97- class Indent
98- private :method
99- protected :method
100- private
101- def method; end
102- protected
103- def method; end
104- public
105- def method; end
106- end
107-
10864 vim:tw=78:sw=4:ts=8:ft=help:norl:
Original file line number Diff line number Diff line change 11*vim-ruby.txt*
22
3- 1. Ruby motions | ruby-motion |
4- 2. Ruby text objects | ruby-text-objects |
3+ 1. Ruby motions | ruby-motion |
4+ 2. Ruby text objects | ruby-text-objects |
5+ 3. Access modifier indentation | ruby-text-objects |
6+
57
68==============================================================================
791. Ruby motions *ruby-motion*
@@ -58,4 +60,48 @@ aM "a class", select from "class" until matching "end"
5860iM "inner class", select contents of "class"/"end"
5961 block, excluding the "class" and "end" themselves.
6062
63+ ==============================================================================
64+ 3. Access modifier indentation *ruby-motion*
65+
66+ Different access modifier indentation styles can be used by setting: >
67+
68+ :let g:ruby_indent_access_modifier_style = 'normal'
69+ :let g:ruby_indent_access_modifier_style = 'indent'
70+ :let g:ruby_indent_access_modifier_style = 'outdent'
71+ <
72+ By default, the normal access modifier style is used.
73+ Access modifier style 'normal' :
74+ class Indent
75+ private :method
76+ protected :method
77+ private
78+ def method; end
79+ protected
80+ def method; end
81+ public
82+ def method; end
83+ end
84+ Access modifier style 'indent' :
85+ class Indent
86+ private :method
87+ protected :method
88+ private
89+ def method; end
90+ protected
91+ def method; end
92+ public
93+ def method; end
94+ end
95+ Access modifier style 'outdent' :
96+ class Indent
97+ private :method
98+ protected :method
99+ private
100+ def method; end
101+ protected
102+ def method; end
103+ public
104+ def method; end
105+ end
106+
61107 vim:tw=78:sw=4:ts=8:ft=help:norl:
You can’t perform that action at this time.
0 commit comments