Skip to main content
Module

x/denops_backport/function/mod.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@v2.0.0/function/mod.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.

Parameters

denops: Denops
str: string
optional
pos: number

Returns

Promise<number>