Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>bufwinid

๐Ÿ“š Standard module for denops.vim
Go to Latest
function bufwinid
import { bufwinid } from "https://deno.land/x/denops_std@v3.12.1/function/mod.ts";

The result is a Number, which is the |window-ID| of the first window associated with buffer {expr}. For the use of {expr}, see |bufname()| above. If buffer {expr} doesn't exist or there is no such window, -1 is returned. Example: >

echo "A window containing buffer 1 is " . (bufwinid(1))

Only deals with the current tab page.

Parameters

denops: Denops
expr: string | number

Returns

Promise<number>