Skip to main content
Module

x/denops_std/function/mod.ts>BufInfo

📚 Standard module for denops.vim
Go to Latest
interface BufInfo
Re-export
import { type BufInfo } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Type of getbufinfo() result.

Properties

bufnr: number

Buffer number.

changed: boolean

TRUE if the buffer is modified.

changedtick: number

Number of changes made to the buffer.

hidden: boolean

TRUE if the buffer is hidden.

lastused: number

Timestamp in seconds, like localtime(), when the buffer was last used.

listed: boolean

TRUE if the buffer is listed.

lnum: number

Line number used for the buffer when opened in the current window. Only valid if the buffer has been displayed in the window in the past. If you want the line number of the last known cursor position in a given window, use line():

:echo line('.', {winid})
linecount: number

Number of lines in the buffer. (only valid when loaded)

loaded: boolean

TRUE if the buffer is loaded.

name: string

Full path to the file in the buffer.

optional
signs: PlacedSign[]

List of signs placed in the buffer.

variables: number

A reference to the dictionary with buffer-local variables.

windows: number[]

List of window-IDs that display this buffer.

popups: number[]

List of popup window-IDs that display this buffer.