Permalink
Browse files

Update README.md to mention Vimrunner.connect.

  • Loading branch information...
1 parent 5303eec commit 67694a422ff738e0120660b4e5509362a767297e @mudge mudge committed Mar 3, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
@@ -66,6 +66,15 @@ you can control Vim. For a full list of methods you can invoke on the remote
Vim instance, check out the [`Client`
documentation](http://rubydoc.info/gems/vimrunner/Vimrunner/Client).
+If you already have a remote-capable Vim server running, you can connect
+Vimrunner to it directly by using `Vimrunner.connect` like so:
+
+```ruby
+# Assuming a running Vim server called FOO...
+vim = Vimrunner.connect("FOO")
+vim.insert("Hello world!")
+```
+
## Testing
If you're using Vimrunner for testing vim plugins, take a look at the

0 comments on commit 67694a4

Please sign in to comment.