Lines Matching refs:Vim

1 *if_ruby.txt*   For Vim version 8.2.  Last change: 2019 Jul 21
6 The Ruby Interface to Vim *ruby* *Ruby*
10 2. The Vim module |ruby-vim|
11 3. Vim::Buffer objects |ruby-buffer|
12 4. Vim::Window objects |ruby-window|
14 6. rubyeval() Vim function |ruby-rubyeval|
19 {only available when Vim was compiled with the |+ruby| feature}
48 Example Vim script: >
54 @buffer = Vim::Buffer.current
84 2. The Vim module *ruby-vim*
86 Ruby code gets all of its access to vim via the "Vim" module.
90 Vim.command(cmd) # execute an Ex command
91 num = Vim::Window.count # gets the number of windows
92 w = Vim::Window[n] # gets window "n"
93 cw = Vim::Window.current # gets the current window
94 num = Vim::Buffer.count # gets the number of buffers
95 b = Vim::Buffer[n] # gets buffer "n"
96 cb = Vim::Buffer.current # gets the current buffer
106 line = Vim::Buffer.current.line # gets the current line
107 num = Vim::Buffer.current.line_number # gets the current line number
108 Vim::Buffer.current.line = "test" # sets the current line number
114 Vim::message({msg})
118 Vim::blob({arg})
122 Vim::set_option({arg})
128 Vim::command({cmd})
132 Vim::evaluate({expr})
135 - a Integer if the Vim expression evaluates to a number
136 - a Float if the Vim expression evaluates to a float
137 - a String if the Vim expression evaluates to a string
138 - a Array if the Vim expression evaluates to a Vim list
139 - a Hash if the Vim expression evaluates to a Vim dictionary
143 3. Vim::Buffer objects *ruby-buffer*
145 Vim::Buffer objects represent vim buffers.
173 4. Vim::Window objects *ruby-window*
175 Vim::Window objects represent vim windows.
205 6. rubyeval() Vim function *ruby-rubyeval*
208 evaluate Ruby expressions and pass their values to Vim script.
219 This means that Vim will search for the Ruby DLL file or shared library only
221 you can use Vim even though this library file is not on your system.
235 The name of the DLL must match the Ruby version Vim was compiled with.
239 If you want to build Vim with RubyInstaller 1.9 or 2.X using MSVC, you need
242 If Vim is built with RubyInstaller 2.4 or later, you may also need to add
250 version of the shared library must match the Ruby version Vim was compiled