Skip to main content
Module

x/denops_std/function/mod.ts>setcursorcharpos

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

Same as cursor() but uses the specified column number as the character index instead of the byte index in the line.

Example: With the text "여보세요" in line 4:

call setcursorcharpos(4, 3)

positions the cursor on the third character '세'.

call cursor(4, 3)

positions the cursor on the first character '여'.

Can also be used as a method:

GetCursorPos()->setcursorcharpos()

Parameters

denops: Denops
lnum: unknown
col: unknown
optional
off: unknown

Returns

Promise<number>

Parameters

denops: Denops
list: unknown

Returns

Promise<number>