Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>setmatches

๐Ÿ“š Standard module for denops.vim
Go to Latest
function setmatches
import { setmatches } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

Restores a list of matches saved by getmatches() for the current window. Returns 0 if successful, otherwise -1. All current matches are cleared before the list is restored. See example for getmatches(). If {win} is specified, use the window with this number or window ID instead of the current window.

Can also be used as a method:

GetMatches()->setmatches()

Parameters

denops: Denops
list: unknown
optional
win: unknown

Returns

Promise<number>