Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

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

๐Ÿ“š Standard module for denops.vim
Go to Latest
function remote_peek
import { remote_peek } from "https://deno.land/x/denops_std@v6.3.0/function/vim/mod.ts";

Returns a positive number if there are available strings from {serverid}. Copies any reply string into the variable {retvar} if specified. {retvar} must be a string with the name of a variable. Returns zero if none are available. Returns -1 if something is wrong. See also clientserver. This function is not available in the sandbox. only available when compiled with the +clientserver feature Examples:

:let repl = ""
:echo "PEEK: " .. remote_peek(id, "repl") .. ": " .. repl

Can also be used as a method:

ServerId()->remote_peek()

Parameters

denops: Denops
serverid: unknown
optional
retvar: unknown

Returns

Promise<number>