FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-ruby/doc/ft-ruby-syntax.txt at master · bascht/vim-ruby · GitHub
bascht
/
vim-ruby
Public
forked from
vim-ruby/vim-ruby
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
vim-ruby
/
doc
/
ft-ruby-syntax.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (28 loc) · 1.33 KB
Breadcrumbs
vim-ruby
/
doc
/
ft-ruby-syntax.txt
Copy path
File metadata and controls
38 lines (28 loc) · 1.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
RUBY
*ruby.vim*
*ft-ruby-syntax*
There are a number of options to the Ruby syntax highlighting.
By default, the "end" keyword is colorized according to the opening statement
of the block it closes. While useful, this feature can be expensive; if you
experience slow redrawing (or you are on a terminal with poor color support)
you may want to turn it off by defining the "ruby_no_expensive" variable:
>
:let ruby_no_expensive = 1
<
In this case the same color will be used for all control keywords.
If you do want this feature enabled, but notice highlighting errors while
scrolling backwards, which are fixed when redrawing with
CTRL-L
, try setting
the "ruby_minlines" variable to a value larger than 50:
>
:let ruby_minlines = 100
<
Ideally, this value should be a number of lines large enough to embrace your
largest class or module.
Ruby operators can be highlighted. This is enabled by defining
"ruby_operators":
>
:let ruby_operators = 1
<
Whitespace errors can be highlighted by defining "ruby_space_errors":
>
:let ruby_space_errors = 1
<
This will highlight trailing whitespace and tabs preceded by a space character
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.
vim:tw=78:sw=4:ts=8:ft=help:norl:
Back
|
FazBrowse Home
|
New Git URL