Skip to main content
Module

x/ddu_vim/deps.ts>fn.bufwinid

Dark deno-powered UI framework for neovim/Vim8
Go to Latest
function fn.bufwinid
import { fn } from "https://deno.land/x/ddu_vim@v1.13.0/deps.ts";
const { bufwinid } = fn;

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>