Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ddc_vim/deps.ts>fn.getwinposx

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