aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2015-04-01 23:07:41 -0400
committerScott Prager <splinterofchaos@gmail.com>2015-04-14 15:31:04 -0400
commit296719428a5adc7c4f00a7f1778771c5ec9af9d0 (patch)
treea6842605c77eeddca41a35d5ecd14d414ea0d48c /runtime/doc/eval.txt
parent4a66c48d8b6e7f74b64f06d176a10d8b6d38491b (diff)
downloadrneovim-296719428a5adc7c4f00a7f1778771c5ec9af9d0.tar.gz
rneovim-296719428a5adc7c4f00a7f1778771c5ec9af9d0.tar.bz2
rneovim-296719428a5adc7c4f00a7f1778771c5ec9af9d0.zip
eval: learn serverstart, list, and close().
Implement functions for spawning, destroying, and listing active servers, and add server_address_list() to msgpack_rpc/server.c for the serverlist() vimL function.
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt20
1 files changed, 16 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index fc4bebbd6e..a9ed4acb19 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -5373,13 +5373,25 @@ server2client( {clientid}, {string}) *server2client()*
:echo server2client(expand("<client>"), "HELLO")
<
serverlist() *serverlist()*
- Return a list of available server names, one per line.
- When there are no servers or the information is not available
- an empty string is returned. See also |clientserver|.
- {only available when compiled with the |+clientserver| feature}
+ Returns a list of available server names in a list.
+ When there are no servers an empty string is returned.
Example: >
:echo serverlist()
<
+serverlisten([{address}]) *serverlisten()*
+ Opens a Unix or TCP socket at {address} for clients to connect
+ to and returns {address}. If no address is given, it is
+ equivalent to >
+ :call serverlisten(tempname())
+< If |$NVIM_LISTEN_ADDRESS| is not set, it will be set to
+ {address}.
+
+serverstop({address}) *serverstop()*
+ Closes the Unix or TCP socket at {address}. Does nothing if
+ {address} is empty, or does not refer to a server. If
+ {address} equals |$NVIM_LISTEN_ADDRESS|, the listen address
+ will be unset.
+
setbufvar({expr}, {varname}, {val}) *setbufvar()*
Set option or local variable {varname} in buffer {expr} to
{val}.