Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ddc_vim/deps.ts>fn.getwinposx

Dark deno-powered completion framework for neovim/Vim
Very Popular
Go to Latest
function fn.getwinposx
import { fn } from "https://deno.land/x/ddc_vim@v4.0.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>