Skip to main content
Module

x/denops_backport/functions.ts>setcmdline

Deno module in denops.vim. Corresponds to newer functions than denops_std.
Go to Latest
function setcmdline
import { setcmdline } from "https://deno.land/x/denops_backport@v1.0.2/functions.ts";

Set the command line to {str} and set the cursor position to {pos}. If {pos} is omitted, the cursor is positioned after the text. Returns 0 when successful, 1 when not editing the command line.

Note that the first call is not possible in a batch block.

Parameters

denops: Denops
str: string
optional
pos: number

Returns

Promise<number>