Skip to main content
Module

x/denops_std/function/vim/mod.ts>server2client

📚 Standard module for denops.vim
Go to Latest
function server2client
import { server2client } from "https://deno.land/x/denops_std@v6.4.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)

Parameters

denops: Denops
clientid: unknown
string: unknown

Returns

Promise<number>