Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/denops_std/function/mod.ts>getwinposx

๐Ÿ“š Standard module for denops.vim
Go to Latest
function getwinposx
import { getwinposx } from "https://deno.land/x/denops_std@v5.0.2/function/mod.ts";

The result is a Number, which is the X coordinate in pixels of the left hand side 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>