Skip to main content
Module

x/denops_std/function/mod.ts>buflisted

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

The result is a Number, which is |TRUE| if a buffer called {buf} exists and is listed (has the 'buflisted' option set). The {buf} argument is used like with |bufexists()|.

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

Parameters

denops: Denops
buf: string | number

Returns

Promise<boolean>