Skip to main content
Module

x/denops_std/function/buffer.ts>bufloaded

📚 Standard module for denops.vim
Go to Latest
function bufloaded
import { bufloaded } from "https://deno.land/x/denops_std@v4.1.4/function/buffer.ts";

The result is a Number, which is |TRUE| if a buffer called {buf} exists and is loaded (shown in a window or hidden). The {buf} argument is used like with |bufexists()|.

Can also be used as a |method|: let loaded = 'somename'->bufloaded()

Parameters

denops: Denops
buf: string | number

Returns

Promise<boolean>