Skip to main content
Module

x/denops_std/function/mod.ts>wildmenumode

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

Returns |TRUE| when the wildmenu is active and |FALSE| otherwise. See 'wildmenu' and 'wildmode'. This can be used in mappings to handle the 'wildcharm' option gracefully. (Makes only sense with |mapmode-c| mappings). For example to make work like in wildmode, use: :cnoremap wildmenumode() ? "<Down><Tab>" : "<c-j>" (Note, this needs the 'wildcharm' option set appropriately).

Returns

Promise<unknown>