Skip to main content
Module

x/dpp_vim/deps.ts>fn.win_screenpos

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

Return the screen position of window {nr} as a list with two numbers: [row, col]. The first window always has position [1, 1], unless there is a tabline, then it is [2, 1]. {nr} can be the window number or the window-ID. Use zero for the current window. Returns [0, 0] if the window cannot be found in the current tabpage.

Can also be used as a method:

GetWinid()->win_screenpos()

Parameters

denops: Denops
nr: unknown

Returns

Promise<unknown[]>