module VIM
The VIM
module provides backwards compatibility for the :ruby
, :rubyfile
, and :rubydo
vim
functions.
Constants
- Buffer
Class representing an
nvim
buffer.The methods documented here were generated using NVIM v0.5.0
@api private
- Window
Public Class Methods
__client=(client)
click to toggle source
# File lib/neovim/ruby_provider/vim.rb, line 12 def self.__client=(client) @__client = client end
__refresh_globals(client)
click to toggle source
# File lib/neovim/ruby_provider/vim.rb, line 35 def self.__refresh_globals(client) bufid, winid = client.evaluate("[nvim_get_current_buf(), nvim_get_current_win()]") session, api = client.session, client.api $curbuf = @__buffer_cache.fetch(bufid) do @__buffer_cache[bufid] = Buffer.new(bufid, session, api) end $curwin = Window.new(winid, session, api) end
method_missing(method, *args, &block)
click to toggle source
Delegate all method calls to the underlying Neovim::Client
object.
Calls superclass method
# File lib/neovim/ruby_provider/vim.rb, line 17 def self.method_missing(method, *args, &block) if @__client @__client.public_send(method, *args, &block).tap do __refresh_globals(@__client) end else super end end
respond_to_missing?(method, *args)
click to toggle source
Calls superclass method
# File lib/neovim/ruby_provider/vim.rb, line 27 def self.respond_to_missing?(method, *args) if @__client @__client.send(:respond_to_missing?, method, *args) else super end end