Skip to main content
Module

x/dpp_vim/deps.ts>fn.getcursorcharpos

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

Same as getcurpos() but the column number in the returned List is a character index instead of a byte index.

Example: With the cursor on '보' in line 3 with text "여보세요":

getcursorcharpos()      returns [0, 3, 2, 0, 3]
getcurpos()             returns [0, 3, 4, 0, 3]

Can also be used as a method:

GetWinid()->getcursorcharpos()

Parameters

denops: Denops
optional
winid: unknown

Returns

Promise<unknown[]>