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

x/denops_std/function/mod.ts>matchdelete

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

Deletes a match with ID {id} previously defined by matchadd() or one of the :match commands. Returns 0 if successful, otherwise -1. See example for matchadd(). All matches can be deleted in one operation by clearmatches(). 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:

GetMatch()->matchdelete()

Parameters

denops: Denops
id: unknown
optional
win: unknown

Returns

Promise<number>