Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
drn committed Nov 3, 2013
1 parent 859183e commit c277b5b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 46 deletions.
44 changes: 0 additions & 44 deletions doc/ft-ruby-syntax.txt
Expand Up @@ -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*
Expand Down Expand Up @@ -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:
50 changes: 48 additions & 2 deletions 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*
Expand Down Expand Up @@ -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.