FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
vim-ruby/doc/ft-ruby-omni.txt at vim7.4 · vim-ruby/vim-ruby · GitHub
vim-ruby
/
vim-ruby
Public
Notifications
You must be signed in to change notification settings
Fork
285
Star
2k
Code
Issues
57
Pull requests
6
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
vim-ruby
/
doc
/
ft-ruby-omni.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (30 loc) · 1.65 KB
Breadcrumbs
vim-ruby
/
doc
/
ft-ruby-omni.txt
Copy path
File metadata and controls
40 lines (30 loc) · 1.65 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
39
40
RUBY
*ft-ruby-omni*
Completion of Ruby code requires that Vim be built with
|
+ruby
|
.
Ruby completion will parse your buffer on demand in order to provide a list of
completions. These completions will be drawn from modules loaded by "require"
and modules defined in the current buffer.
The completions provided by
CTRL-X
CTRL-O
are sensitive to the context:
CONTEXT COMPLETIONS PROVIDED
~
1. Not inside a class definition Classes, constants and globals
2. Inside a class definition Methods or constants defined in the class
3. After '.', '::' or ':' Methods applicable to the object being
dereferenced
4. After ':' or ':foo' Symbol name (beginning with "foo")
Notes:
- Vim will load/evaluate code in order to provide completions. This may
cause some code execution, which may be a concern. This is no longer
enabled by default, to enable this feature add
>
let g:rubycomplete_buffer_loading = 1
<
- In context 1 above, Vim can parse the entire buffer to add a list of
classes to the completion results. This feature is turned off by default,
to enable it add
>
let g:rubycomplete_classes_in_global = 1
<
to your vimrc
- In context 2 above, anonymous classes are not supported.
- In context 3 above, Vim will attempt to determine the methods supported by
the object.
- Vim can detect and load the Rails environment for files within a rails
project. The feature is disabled by default, to enable it add
>
let g:rubycomplete_rails = 1
<
to your vimrc
vim:tw=78:sw=4:ts=8:ft=help:norl:
Back
|
FazBrowse Home
|
New Git URL