Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>autocmd.remove

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function autocmd.remove
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
pat: string | string[]
optional
options: RemoveOptions = [UNSUPPORTED]

Returns

Promise<void>