Skip to main content
Module

x/ddc_vim/deps.ts>fn.remote_send

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.remote_send
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { remote_send } = fn;

Send the {string} to {server}. The string is sent as input keys and the function returns immediately. At the Vim server the keys are not mapped |:map|. If {idvar} is present, it is taken as the name of a variable and a {serverid} for later use with remote_read() is stored there. See also |clientserver| |RemoteReply|. This function is not available in the |sandbox|. {only available when compiled with the |+clientserver| feature} Note: Any errors will be reported in the server and may mess up the display. Examples: :echo remote_send("gvim", ":DropAndReply ".file, "serverid"). \ remote_read(serverid) :autocmd NONE RemoteReply * \ echo remote_read(expand("")) :echo remote_send("gvim", ":sleep 10 | echo ". \ 'server2client(expand(""), "HELLO")') Can also be used as a |method|: ServerName()->remote_send(keys)

Parameters

denops: Denops
server: unknown
string: unknown
optional
idvar: unknown

Returns

Promise<unknown>