Skip to main content
Module

x/dpp_vim/deps.ts>fn.getwinposx

Dark powered plugin manager for Vim/neovim
Latest
function fn.getwinposx
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { getwinposx } = fn;

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>