Skip to main content
Module

x/ddc_vim/deps.ts>fn.bufwinnr

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

The result is a Number, which is the number 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 " . (bufwinnr(1))

The number can be used with |CTRL-W_w| and ":wincmd w" |:wincmd|. Only deals with the current tab page.

Parameters

denops: Denops
expr: string | number

Returns

Promise<number>