Skip to main content
Module

x/denops_backport/mod.ts>fn.setcmdline

Deno module in denops.vim. Corresponds to newer functions than denops_std.
Go to Latest
function fn.setcmdline
import { fn } from "https://deno.land/x/denops_backport@v2.1.0/mod.ts";
const { setcmdline } = fn;

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.

Can also be used as a method:

GetText()->setcmdline()

Parameters

denops: Denops
str: string
optional
pos: number

Returns

Promise<number>