Skip to main content
Module

x/denops_std/function/mod.ts>setcmdline

📚 Standard module for denops.vim
Go to Latest
function setcmdline
import { setcmdline } from "https://deno.land/x/denops_std@v6.4.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.

Can also be used as a method:

GetText()->setcmdline()

Parameters

denops: Denops
str: unknown
optional
pos: unknown

Returns

Promise<number>