Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddu_vim/deps.ts>fn.getcmdtype

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.getcmdtype
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { getcmdtype } = fn;

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<unknown>