Skip to main content
Module

x/ddc_vim/deps.ts>fn.getwinposx

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.getwinposx
import { fn } from "https://deno.land/x/ddc_vim@v2.3.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<unknown>