Skip to content

VimHistoryController.nextMatch method

VimHistoryController › nextMatch

Unofficial

Walk to the next history entry starting with the given input.

Signature:

nextMatch(input: string, up: boolean): string | undefined

Parameters:

ParameterTypeDescription
inputstringThe prefix to match, which is the text the user typed before starting to walk.
upbooleanWhether to walk towards older entries.

Returns: string | undefinedThe matching entry, or undefined when there is none.