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

x/denops_std/function/mod.ts>getcmdscreenpos

📚 Standard module for denops.vim
Go to Latest
function getcmdscreenpos
import { getcmdscreenpos } from "https://deno.land/x/denops_std@v4.1.4/function/mod.ts";

Return the screen position of the cursor in the command line as a byte count. The first column is 1. Instead of |getcmdpos()|, it adds the prompt position. Only works when editing the command line, thus requires use of |c_CTRL-_e| or |c_CTRL-R_=| or an expression mapping. Returns 0 otherwise. Also see |getcmdpos()|, |setcmdpos()|, |getcmdline()| and |setcmdline()|.

Returns

Promise<unknown>