Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/denops_std/function/vim/mod.ts>getcursorcharpos

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

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>