Skip to content
Browse files

Update documentation

  • Loading branch information...
1 parent 859183e commit c277b5bd6532718f80cd8ab8c1072f6bb84f8e69 @drn drn committed Nov 2, 2013
Showing with 48 additions and 46 deletions.
  1. +0 −44 doc/ft-ruby-syntax.txt
  2. +48 −2 doc/vim-ruby.txt
View
44 doc/ft-ruby-syntax.txt
@@ -6,7 +6,6 @@ There are a number of options to the Ruby syntax highlighting.
2. Whitespace errors |ruby_space_errors|
3. Folds |ruby_fold|
4. Reducing expensive operations |ruby_no_expensive| |ruby_minlines|
-5. Reducing expensive operations |ruby_indent_access_modifier_style|
1. Ruby operators *ruby_operators*
@@ -62,47 +61,4 @@ the "ruby_minlines" variable to a value larger than 50: >
Ideally, this value should be a number of lines large enough to embrace your
largest class or module.
-5. Access modifier indentation *ruby_indent_access_modifier_style*
-
-Different access modifier indentation styles can be used by setting: >
-
- :let g:ruby_indent_access_modifier_style
- :let g:ruby_indent_access_modifier_style = 'indent'
- :let g:ruby_indent_access_modifier_style = 'outdent'
-<
-By default, the normal access modifier style is used.
-Access modifier style 'normal':
- class Indent
- private :method
- protected :method
- private
- def method; end
- protected
- def method; end
- public
- def method; end
- end
-Access modifier style 'indent':
- class Indent
- private :method
- protected :method
- private
- def method; end
- protected
- def method; end
- public
- def method; end
- end
-Access modifier style 'outdent':
- class Indent
- private :method
- protected :method
- private
- def method; end
- protected
- def method; end
- public
- def method; end
- end
-
vim:tw=78:sw=4:ts=8:ft=help:norl:
View
50 doc/vim-ruby.txt
@@ -1,7 +1,9 @@
*vim-ruby.txt*
-1. Ruby motions |ruby-motion|
-2. Ruby text objects |ruby-text-objects|
+1. Ruby motions |ruby-motion|
+2. Ruby text objects |ruby-text-objects|
+3. Access modifier indentation |ruby-text-objects|
+
==============================================================================
1. Ruby motions *ruby-motion*
@@ -58,4 +60,48 @@ aM "a class", select from "class" until matching "end"
iM "inner class", select contents of "class"/"end"
block, excluding the "class" and "end" themselves.
+==============================================================================
+3. Access modifier indentation *ruby-motion*
+
+Different access modifier indentation styles can be used by setting: >
+
+ :let g:ruby_indent_access_modifier_style = 'normal'
+ :let g:ruby_indent_access_modifier_style = 'indent'
+ :let g:ruby_indent_access_modifier_style = 'outdent'
+<
+By default, the normal access modifier style is used.
+Access modifier style 'normal':
+ class Indent
+ private :method
+ protected :method
+ private
+ def method; end
+ protected
+ def method; end
+ public
+ def method; end
+ end
+Access modifier style 'indent':
+ class Indent
+ private :method
+ protected :method
+ private
+ def method; end
+ protected
+ def method; end
+ public
+ def method; end
+ end
+Access modifier style 'outdent':
+ class Indent
+ private :method
+ protected :method
+ private
+ def method; end
+ protected
+ def method; end
+ public
+ def method; end
+ end
+
vim:tw=78:sw=4:ts=8:ft=help:norl:

0 comments on commit c277b5b

Please sign in to comment.
Something went wrong with that request. Please try again.