comparison runtime/doc/if_ruby.txt @ 557:862863033fdd v7.0158

updated for version 7.0158
author vimboss
date Wed, 23 Nov 2005 21:25:05 +0000
parents 52e76e2b5b65
children 0f9f4761ad9c
comparison
equal deleted inserted replaced
556:f9eaf0a9872d 557:862863033fdd
1 *if_ruby.txt* For Vim version 7.0aa. Last change: 2005 Aug 31 1 *if_ruby.txt* For Vim version 7.0aa. Last change: 2005 Oct 14
2 2
3 3
4 VIM REFERENCE MANUAL by Shugo Maeda 4 VIM REFERENCE MANUAL by Shugo Maeda
5 5
6 The Ruby Interface to Vim *ruby* *Ruby* 6 The Ruby Interface to Vim *ruby* *Ruby*
9 1. Commands |ruby-commands| 9 1. Commands |ruby-commands|
10 2. The VIM module |ruby-vim| 10 2. The VIM module |ruby-vim|
11 3. VIM::Buffer objects |ruby-buffer| 11 3. VIM::Buffer objects |ruby-buffer|
12 4. VIM::Window objects |ruby-window| 12 4. VIM::Window objects |ruby-window|
13 5. Global variables |ruby-globals| 13 5. Global variables |ruby-globals|
14 6. Dynamic loading |ruby-dynamic|
14 15
15 {Vi does not have any of these commands} 16 {Vi does not have any of these commands}
16 *E266* *E267* *E268* *E269* *E270* *E271* *E272* *E273* 17 *E266* *E267* *E268* *E269* *E270* *E271* *E272* *E273*
17 18
18 The Ruby interface only works when Vim was compiled with the |+ruby| feature. 19 The Ruby interface only works when Vim was compiled with the |+ruby| feature.
164 cursor Returns a [row, col] array for the cursor position. 165 cursor Returns a [row, col] array for the cursor position.
165 cursor = [{row}, {col}] 166 cursor = [{row}, {col}]
166 Sets the cursor position to {row} and {col}. 167 Sets the cursor position to {row} and {col}.
167 168
168 ============================================================================== 169 ==============================================================================
169 4. Global variables *ruby-globals* 170 5. Global variables *ruby-globals*
170 171
171 There are two global variables. 172 There are two global variables.
172 173
173 $curwin The current window object. 174 $curwin The current window object.
174 $curbuf The current buffer object. 175 $curbuf The current buffer object.
175 176
176 ============================================================================== 177 ==============================================================================
178 6. Dynamic loading *ruby-dynamic*
179
180 On MS-Windows the Ruby library can be loaded dynamically. The |:version|
181 output then includes |+ruby/dyn|.
182
183 This means that Vim will search for the Ruby DLL file only when needed. When
184 you don't use the Ruby interface you don't need it, thus you can use Vim
185 without this DLL file.
186
187 To use the Ruby interface the Ruby DLL must be in your search path. In a
188 console window type "path" to see what directories are used.
189
190 The name of the DLL must match the Ruby version Vim was compiled with.
191 Currently the name is "ruby18.dll". That is for Ruby 1.8. To know for sure
192 edit "gvim.exe" and search for "ruby\d*.dll\c".
193
194 ==============================================================================
177 vim:tw=78:ts=8:ft=help:norl: 195 vim:tw=78:ts=8:ft=help:norl: