aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJames Baumgarten <jebaum@ucla.edu>2014-11-13 15:29:38 -0800
committerJustin M. Keyes <justinkz@gmail.com>2014-11-17 17:41:14 -0500
commit06e5c2c0634669e5c10d2f5b51dd32338a1ef23c (patch)
tree72ee84f9c44ce6811211478556a861fe9439faa6 /runtime/doc
parent3b8661745b2c5ed8b4b9a7bfe4fa75935eb1afeb (diff)
downloadrneovim-06e5c2c0634669e5c10d2f5b51dd32338a1ef23c.tar.gz
rneovim-06e5c2c0634669e5c10d2f5b51dd32338a1ef23c.tar.bz2
rneovim-06e5c2c0634669e5c10d2f5b51dd32338a1ef23c.zip
doc: update msgpack_rpc documentation to use nvim as variable name #1470
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/msgpack_rpc.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/doc/msgpack_rpc.txt b/runtime/doc/msgpack_rpc.txt
index 3d8ae276ce..41f387b452 100644
--- a/runtime/doc/msgpack_rpc.txt
+++ b/runtime/doc/msgpack_rpc.txt
@@ -107,14 +107,14 @@ string 'hello world!' on the current nvim instance:
require 'msgpack/rpc'
require 'msgpack/rpc/transport/unix'
- vim = MessagePack::RPC::Client.new(MessagePack::RPC::UNIXTransport.new, ENV['NVIM_LISTEN_ADDRESS'])
- result = vim.call(:vim_command, 'echo "hello world!"')
+ nvim = MessagePack::RPC::Client.new(MessagePack::RPC::UNIXTransport.new, ENV['NVIM_LISTEN_ADDRESS'])
+ result = nvim.call(:vim_command, 'echo "hello world!"')
<
A better way is to use the python REPL with the `neovim` package, where API
functions can be called interactively:
>
- >>> import neovim; vim = neovim.connect('[address]')
- >>> vim.command('echo "hello world!"')
+ >>> import neovim; nvim = neovim.connect('[address]')
+ >>> nvim.command('echo "hello world!"')
<
==============================================================================
4. Implementing new clients *msgpack-rpc-clients*