Skip to main content
Module

x/ddc_vim/deps.ts>fn.getcmdline

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.getcmdline
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { getcmdline } = fn;

Return the current command-line. Only works when the command line is being edited, thus requires use of |c_CTRL-_e| or |c_CTRL-R_=|. Example: :cmap <C->eescape(getcmdline(), ' ')<CR Returns an empty string when entering a password or using |inputsecret()|.

Returns

Promise<unknown>