Skip to main content
Module

x/denops_std/function/mod.ts>winheight

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

The result is a Number, which is the height of window {nr}. {nr} can be the window number or the window-ID. When {nr} is zero, the height of the current window is returned. When window {nr} doesn't exist, -1 is returned. An existing window always has a height of zero or more. This excludes any window toolbar line. Examples:

:echo "The current window has " .. winheight(0) .. " lines."

Can also be used as a method:

GetWinid()->winheight()

Parameters

denops: Denops
nr: unknown

Returns

Promise<number>