Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaned up docs

  • Loading branch information...
commit 2ba6f57c38df83c38bb62ab9391d55fd24a1910b 1 parent fd3871b
Tim Pope tpope authored
Showing with 12 additions and 31 deletions.
  1. +5 −0 ChangeLog
  2. +0 −29 doc/ft-ruby-syntax.txt
  3. +7 −2 indent/eruby.vim
5 ChangeLog
View
@@ -1,3 +1,8 @@
+2007-05-11 Tim Pope <vim@tpope.info>
+
+ * indent/eruby.vim: GetRubyIndent() takes an argument for debugging
+ * doc/ft-ruby-syntax.txt: clean up some cruft
+
2007-05-09 Tim Pope <vim@tpope.info>
* syntax/ruby.vim: added module_function keyword
29 doc/ft-ruby-syntax.txt
View
@@ -20,23 +20,6 @@ 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.
-Highlighting of special identifiers can be disabled by removing the
-rubyIdentifier highlighting: >
-
- :hi link rubyIdentifier NONE
-<
-This will prevent highlighting of special identifiers like "ConstantName",
-"$global_var", "@@class_var", "@instance_var", "| block_param |", and
-":symbol".
-
-Significant methods of Kernel, Module and Object are highlighted by default.
-This can be disabled by defining "ruby_no_special_methods": >
-
- :let ruby_no_special_methods = 1
-<
-This will prevent highlighting of important methods such as "require", "attr",
-"private", "raise" and "proc".
-
Ruby operators can be highlighted. This is enabled by defining
"ruby_operators": >
@@ -51,17 +34,5 @@ as errors. This can be refined by defining "ruby_no_trail_space_error" and
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
spaces respectively.
-Folding can be enabled by defining "ruby_fold": >
-
- :let ruby_fold = 1
-<
-This will set the 'foldmethod' option to "syntax" and allow folding of
-classes, modules, methods, code blocks, heredocs and comments.
-
-Folding of multiline comments can be disabled by defining
-"ruby_no_comment_fold": >
-
- :let ruby_no_comment_fold = 1
-<
vim:tw=78:sw=4:ts=8:ft=help:norl:
9 indent/eruby.vim
View
@@ -1,7 +1,7 @@
" Vim indent file
" Language: eRuby
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
-" Info: $Id: eruby.vim,v 1.9 2007/04/16 17:03:36 tpope Exp $
+" Info: $Id: eruby.vim,v 1.10 2007/05/12 15:40:56 tpope Exp $
" URL: http://vim-ruby.rubyforge.org
" Anon CVS: See above site
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
@@ -40,7 +40,12 @@ if exists("*GetErubyIndent")
finish
endif
-function! GetErubyIndent()
+function! GetErubyIndent(...)
+ if a:0 && a:1 == '.'
+ let v:lnum = line('.')
+ elseif a:0 =~ '^\d'
+ let v:lnum = a:1
+ endif
let vcol = col('.')
call cursor(v:lnum,1)
let inruby = searchpair('<%','','%>')
Please sign in to comment.
Something went wrong with that request. Please try again.