Skip to main content
Module

x/dpp_vim/deps.ts>fn.getcmdline

Dark powered plugin manager for Vim/neovim
Latest
function fn.getcmdline
import { fn } from "https://deno.land/x/dpp_vim@v0.2.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 <F7> <C-\>eescape(getcmdline(), ' \')<CR>

Also see getcmdtype(), getcmdpos(), setcmdpos() and setcmdline(). Returns an empty string when entering a password or using inputsecret().

Returns

Promise<string>