import { server2client } from "https://deno.land/x/denops_std@v6.3.0/function/vim/mod.ts";
Send a reply string to {clientid}. The most recent {clientid}
that sent a string can be retrieved with expand("<client>"
).
only available when compiled with the +clientserver
feature
Returns zero for success, -1 for failure.
Note:
This id has to be stored before the next command can be
received. I.e. before returning from the received command and
before calling any commands that waits for input.
See also clientserver
.
Example:
:echo server2client(expand("<client>"), "HELLO")
Can also be used as a method
:
GetClientId()->server2client(string)