Skip to main content
Module

x/denops_std/function/mod.ts>getcmdtype

📚 Standard module for denops.vim
Go to Latest
function getcmdtype
import { getcmdtype } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Return the current command-line type. Possible return values are: : normal Ex command > debug mode command debug-mode / forward search command ? backward search command @ input() command - :insert or :append command = i_CTRL-R_= Only works when editing the command line, thus requires use of c_CTRL-\_e or c_CTRL-R_= or an expression mapping. Returns an empty string otherwise. Also see getcmdpos(), setcmdpos() and getcmdline().

Returns

Promise<string>