Skip to main content
Module

x/dpp_vim/deps.ts>autocmd.emitAll

Dark powered plugin manager for Vim/neovim
Latest
function autocmd.emitAll
import { autocmd } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { emitAll } = autocmd;

Emit an autocmd in all buffers

import type { Denops } from "https://deno.land/x/denops_std@v0.2.0/mod.ts";
import * as autocmd from "https://deno.land/x/denops_std@v0.2.0/autocmd/mod.ts";

export async function main(denops: Denops): Promise<void> {
  // Emit an autocmd in all buffers
  await autocmd.emitAll(denops, "BufEnter");

  // Emit multiple autocmds in all buffers
  await autocmd.emitAll(denops, ["BufEnter", "WinEnter"]);

  // Emit an autocmd in all buffers match with 'Hello'
  await autocmd.emitAll(denops, "BufEnter", "Hello");
}

Parameters

denops: Denops
optional
fname: string
optional
options: EmitOptions = [UNSUPPORTED]

Returns

Promise<unknown>