Method: Vimrunner.start_gvim

Defined in:
lib/vimrunner.rb

.start_gvim(&blk) ⇒ Object

Public: Start a Vim process with a GUI and return a Client through which it can be controlled.

vim - The String path to the Vim you wish to use (default: the most

appropriate Vim for your system).

blk - An optional block which will be passed a Client with which you can

communicate with the Vim process. Upon exiting the block, the Vim
process will be terminated.

Examples

client = Vimrunner.start
# => #<Vimrunner::Client>

Vimrunner.start do |client|
  client.command("version")
end

Returns a Client for the started Server.


48
49
50
# File 'lib/vimrunner.rb', line 48

def self.start_gvim(&blk)
  Server.new(:executable => Platform.gvim).start(&blk)
end