Method: Vimrunner.connect
- Defined in:
- lib/vimrunner.rb
.connect(name) ⇒ Object
Public: Connect to an existing Vim process by name. Returns nil in case of failure.
name - The String name of the Vim server to connect to.
Examples
client = Vimrunner.connect("FOO")
# => #<Vimrunner::Client>
Returns a Client for the named server.
63 64 65 |
# File 'lib/vimrunner.rb', line 63 def self.connect(name) Server.new(:name => name).connect end |