Skip to main content
Module

x/ddc_vim/deps.ts>fn.getcmdpos

Dark deno-powered completion framework for neovim/Vim8
Go to Latest
function fn.getcmdpos
import { fn } from "https://deno.land/x/ddc_vim@v2.3.0/deps.ts";
const { getcmdpos } = fn;

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()| and |getcmdline()|.

Returns

Promise<unknown>