Class: Neovim::Window
Constant Summary
collapse
- OPTION_PARAM =
:win
Constants inherited
from RemoteObject
RemoteObject::TRANSFER
Instance Attribute Summary
Attributes inherited from RemoteObject
#client, #index
Class Method Summary
collapse
Instance Method Summary
collapse
#==, #call_api, #call_obj, from_mpdata, #initialize, #inspect, #method_missing, #methods, new, plain_new, #respond_to_missing?, #to_mpdata, type, #type
#get_option, #option_params, #set_option
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Neovim::RemoteObject
Class Method Details
33
|
# File 'lib/neovim/ruby_provider.rb', line 33
def [] i ; $vim.get_current_tabpage.list_wins[ i] ; end
|
32
|
# File 'lib/neovim/ruby_provider.rb', line 32
def count ; $vim.get_current_tabpage.list_wins.size ; end
|
31
|
# File 'lib/neovim/ruby_provider.rb', line 31
def current ; $vim.get_current_win ; end
|
Instance Method Details
300
|
# File 'lib/neovim/remote_object.rb', line 300
def buffer ; call_obj :get_buf ; end
|
310
|
# File 'lib/neovim/remote_object.rb', line 310
def cursor ; call_obj :get_cursor ; end
|
#cursor=(yx) ⇒ Object
311
|
# File 'lib/neovim/remote_object.rb', line 311
def cursor= yx ; call_obj :set_cursor, yx ; end
|
302
|
# File 'lib/neovim/remote_object.rb', line 302
def height ; call_obj :get_height ; end
|
#height=(n) ⇒ Object
303
|
# File 'lib/neovim/remote_object.rb', line 303
def height= n ; call_obj :set_height, n ; end
|
308
|
# File 'lib/neovim/remote_object.rb', line 308
def line ; cursor.first ; end
|
298
|
# File 'lib/neovim/remote_object.rb', line 298
def number ; call_obj :get_number ; end
|
#save_cursor ⇒ Object
313
314
315
316
317
|
# File 'lib/neovim/remote_object.rb', line 313
def save_cursor
c = cursor
yield
self.cursor = c
end
|
305
|
# File 'lib/neovim/remote_object.rb', line 305
def width ; call_obj :get_width ; end
|
#width=(n) ⇒ Object
306
|
# File 'lib/neovim/remote_object.rb', line 306
def width= n ; call_obj :set_width, n ; end
|