import { autocmd } from "https://deno.land/x/ddc_vim@v3.9.1/deps.ts";
const { remove } = autocmd;
Remove an autocmd
import { Denops } from "../mod.ts";
import * as autocmd from "./mod.ts";
export async function main(denops: Denops): Promise<void> {
// Remove BufEnter autocmd
await autocmd.remove(denops, "BufEnter", "*");
// Remove any autocmd in buffer
await autocmd.remove(denops, "*", "<buffer>");
// Remove BufEnter autocmd in 'MyGroup'
await autocmd.remove(denops, "BufEnter", "*", {
group: "MyGroup",
});
// Remove multiple autocmds
await autocmd.remove(denops, ["BufEnter", "WinEnter"], "*");
}
Parameters
denops: Denops
optional
event: "*" | AutocmdEvent | AutocmdEvent[]optional
options: RemoveOptions = [UNSUPPORTED]