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@v6.4.0/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 <c-j> work like <down> in wildmode, use:

:cnoremap <expr> <C-j> wildmenumode() ? "\<Down>\<Tab>" : "\<c-j>"

(Note, this needs the 'wildcharm' option set appropriately).

Returns

Promise<number>