Skip to main content
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@v4.3.0/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>