Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.setcmdline

Dark deno-powered completion framework for neovim/Vim
Very Popular
Go to Latest
function fn.setcmdline
import { fn } from "https://deno.land/x/ddc_vim@v4.0.0/deps.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: unknown
optional
pos: unknown

Returns

Promise<number>