Skip to main content
Module

x/denops_std/function/mod.ts>getcmdpos

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

Return the position of the cursor in the command line as a byte count. The first column is 1. 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 getcmdtype(), setcmdpos(), getcmdline() and setcmdline().

Returns

Promise<number>