Skip to main content
Module

x/ddc_vim/deps.ts>fn.winbufnr

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.winbufnr
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { winbufnr } = fn;

The result is a Number, which is the number of the buffer associated with window {nr}. {nr} can be the window number or the |window-ID|. When {nr} is zero, the number of the buffer in the current window is returned. When window {nr} doesn't exist, -1 is returned. Example: :echo "The file in the current window is " . bufname(winbufnr(0)) Can also be used as a |method|: FindWindow()->winbufnr()->bufname()

Parameters

denops: Denops
nr: unknown

Returns

Promise<unknown>