Skip to main content
Module

x/denops_std/function/mod.ts>getwinposy

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

The result is a Number, which is the Y coordinate in pixels of the top of the GUI Vim window. Also works for an xterm (uses a timeout of 100 msec). The result will be -1 if the information is not available. The value can be used with :winpos.

Returns

Promise<number>